From Lighttpd to Nginx
Nov 10, 2015 #sysadmin #the internetI recently moved this blog from Lighttpd to nginx. Lighttpd was good for a while, but now that I have plenty of experience rewriting server configuration rules, I feel that I’m ready for nginx.
To be upfront, nginx configuration isn’t that hard at all. The only issues I seemed to have was that I was unfamiliar with the terminology or what I wanted to make happen with nginx.
For example, when I first started being a sysadmin, I had no clue what a scheme, URI, or the status codes were. However, over time as I learned these things, nginx became more and more appealing.
The migration process was pretty simple. I just set up nginx to run on port 81 and 444 (instead of your typical ports) along-site Lighttpd until everything was ready. After that, it was simply a matter of making sure everything worked in nginx until I ran %s/81/80/g
and %s/444/443/g
in my nginx configuration and turned Lighttpd off.
Lighttpd served me well, and is now removed from all my machines. Goodnight, sweet prince.