brew install nginx
sudo cp /usr/local/Cellar/nginx/1.8.0/homebrew.mxcl.nginx.plist /Library/LaunchAgents
Replace /usr/local/etc/nginx/nginx.conf
with the nginx.conf
in this gist. I'm using port 8081 for my current project.
sudo launchctl load /Library/LaunchAgents/homebrew.mxcl.nginx.plist
curl -L -vv localhost:8081/status/