NGINX HTTP to HTTPS and Non-WWW to WWW Redirect Configuration

While setting up LetsEncrypt to work with CloudFlare, I ran into a bunch of issues with my NginX config that caused me a bunch of downtime. Because I run multiple domains, I wanted to keep my non-www to www URL redirects and also redirect HTTP to HTTPS. Before, I was using just: server { server_name […]

Scroll to top