All articles tagged as:

nginx

How I Dockerised my blog

Docker is a fantastic tool and great if you're running a VPS like me. However a common question is... What if I want to be able to run multiple sites from a single VPS? Most websites running in containers listen on port 80 by default. Only one of them can be bound to that port at a time, so whats the answer? Well, unless you want to access your websites using addresses such as www.example.com:1234. Then a reverse proxy is the answer. Nginx will be our reverse proxy. It will take all incoming requests and route them to the correct container via Dockers VIRTUAL_HOST variable. Prerequisites You w…

Read more »

HTTPS with Nginx and Let's Encrypt

I've been wanting to get started on this blog for a while now but I wasn't sure what to kick things off with. Then I realised that setting this blog up has been pretty interesting. So why not start with a post about that... The Problem When I setup this blog I had an issue with not being able to redirect my www subdomain to non-www over HTTPS. I kept receiving a Not Secure error from Chrome stating that I had no valid certificate. My SSL certificate is provided by the awesome Let's Encrypt service. And after some Googling I realised that when I had setup the blog using Ghosts CLI it had only c…

Read more »