Apache to Nginx

Written by James McDonald

March 3, 2014

Just completed moving this website https://toggen.com.au/blog to nginx web server.

The issues I found:

  • Installing and configuring php-fpm to run per user
  • Learning the syntax of the nginx conf files
  • Rewriting the .htaccess files into the correct nginx rules
  • Trying to figure out the order of precedence for the nginx location {} blocks
  • Many nginx configuration examples use old syntax and you need to learn how to re-write them in try_files format
  • Running multiple PHP applications such as CakePHP, WordPress and Gallery 3 which all have different ways of handling arguments.
  • A lot of howto’s assume that the application is in the web root moving them to sub-directories can be challenging when having to port the aforementioned .htaccess rules
  • Installing on CentOS which has a different conf file layout to the more ubiquitous Debian based distro’s







Submit a Comment

Your email address will not be published.

You May Also Like…


Zebra Printer Language http://labelary.com/viewer.html The above website has a page where you can enter ZPL and it...

PHP Iterators

Just came across a Youtube talk "Iterators in PHP" by Jake Smith published in 2014 that steps through the many...

PHP array_map Multiple Arrays

array_map can take multiple arrays. I like how it starts mapping through them starting at the first element of each...