Docker Lab – Containerising your website, Part 4 (Let’s Encrypt)

If you’ve been following along with this series of tutorials, you’ll have built a LEMP stack capable of handling multiple vhosts. That’s all very well – but if you expect your users to enter their username and password into the site then you’ll need to provide them with a little security. The only way to do that is with ssl, certificates for which used to be pricey or came with strings attached.

Let’s Encrypt is a certificate authority started by the Electronic Frontier Foundation, Mozilla Foundation, University of Michigan, Akamai Technologies and Cisco Systems to provide ssl certificates for free, and to simplify the process of securing your website into the bargain. They take donations though – and this is one project that you really should consider supporting. Continue reading “Docker Lab – Containerising your website, Part 4 (Let’s Encrypt)”

Docker Lab – Containerising your website, Part 2 (PHP)

In the previous instalment (Docker Lab – Containerising your website, Part 1), we installed Docker and Docker Compose, and set up an Nginx container. If all you need is to serve a few static pages there’s no need to read any further. But if you need your website to be dynamic, if you need PHP and, perhaps, a database, read on…

These instructions assume that you have followed the steps in part 1. Continue reading “Docker Lab – Containerising your website, Part 2 (PHP)”

Docker Lab – Containerising your website, Part 1 (Nginx)

For many years now, 45RPMSoftware has maintained its own webservers (hosted on virtual machines by Rackspace).  These webservers have been set up in the ‘traditional’ manner, with a LAMP (Linux, Apache, MySQL, PHP) stack.  They’ve worked well and so I’ve ignored them, which isn’t the right way to run a website and especially not one which hosts your business.For many years now, 45RPMSoftware has maintained its own webservers (hosted on virtual machines by Rackspace).  These webservers have been set up in the ‘traditional’ manner, with a LAMP (Linux, Apache, MySQL, PHP) stack.  They’ve worked well and so I’ve ignored them, which isn’t the right way to run a website and especially not one which hosts your business. Continue reading “Docker Lab – Containerising your website, Part 1 (Nginx)”

NSString – components separated by case insensitive string

The latest version of MailRaider greatly improves its handling of base64 encoded or quoted printable strings – the previous version could get confused if, for example, it encountered ‘=?UTF-8?B?’ instead of ‘=?utf-8?b?’. The problem is that NSString only has componentsSeparatedByString – which isn’t much use if you don’t know what case to expect. Hmm. Continue reading “NSString – components separated by case insensitive string”