howto

How To Self-Host an Infinitely Scalable WordPress Site on a Shoestring Budget

I love WordPress. I use it for nearly all the sites I build, I write plugins for it, I run this site on it. It’s an awesome content management system and blogging platform. I love that I can modify and extend it with plugins and themes however I want, without restriction. I love that it’s open source, so I can contribute to it being a better product and use it pretty much however I want without fees and license restrictions.

How To Redirect HTTP to HTTPS in Nginx

A while back I moved my site to full-time TLS. This is great for users since it provides both security through an encrypted connection, and authentication to verify that what they’re getting is actually coming from me, without alteration or interception. However, I needed to make sure any requests to non-TLS locations were redirected to their new TLS-protected URL. Luckily Nginx makes this really simple. Here’s the code you need to add to your server configuration: