Nginx on Mac

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

Recent Entries

  • Daemon by Daniel Suarez...

    ...so far is a rocking good book. Thanks, Ben for the recommendation....

  • Nginx on Mac

    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 nginxCouple gotchas...

  • Jetty and Netty: I can't get more than 2.5K requests/sec

    I'm trying to find a Java webserver that can handle 10 requests/sec from 1,000 clients. Doesn't need to be good at (or even able to)...

  • Frog fish

    Angela wanted me to tell everyone that we saw one of these fluorescent yellow frog fish and she got to play with it. We also...

  • Hawaii Pictures (ship wrecks, Pearl harbor, blow holes)

    Links to photo albums of our various Oahu adventures. Dragon Nostrils and Spitting Cave Oahu Vacation Pearl Harbo Oahu Vacation Diamond Peak Oahu Vacation Ship...

Close