It's straightforwards to install Nginx on OSX with bre - parisnakitakejser.com ![]()
Installation on OSX is painless:
brew install nginx
However if you want to install modules like lua you can use the handy:
The only issue is with that the default install of nginx with homebrew does not include LUA support.
# Tidy your folders
You may want to set up these folders:
/usr/local/etc/nginx/sites-enabled/ /usr/local/etc/nginx/sites-enabled/
And make some symbolic links:
cd /usr/local/etc/nginx/sites-enabled ln -s ../sites-available/default.conf ln -s ../sites-available/default-ssl.conf
Use this command to get NGINX to start up when you boot up your OS X.
ln -sfv /usr/local/opt/nginx/*.plist ~/Library/LaunchAgents
The file locations on OSX for nginx as installed by default using homebrew are:
/usr/local/etc/nginx/nginx.conf /usr/local/etc/nginx/sites-available/default.conf /usr/local/etc/nginx/sites-available/default-ssl.conf /Library/LaunchDaemons/homebrew.mxcl.nginx.plist