In trying to get a local environment that mirrors what's running on this server I installed the Mac port of nginx.
sudo port install nginx
Couple gotchas I'm publishing for the Google:
- nginx has to run as root on the Mac. Otherwise you'll run into all kinds of permission issues. Apparently a bunch of paths are hard-coded into the binary and normal users don't have write access to those directories.
- The config file must be specified with the full path. Otherwise it won't find it and will use the default without telling you.
Leave a comment