mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf
File locations:
nginx.confto/usr/local/etc/nginx/default.confanddefault-ssl.confto/usr/local/etc/nginx/sites-availablehomebrew.mxcl.nginx.plistto/Library/LaunchDaemons/
Not documented yet:
- How to create self-signed SSL certificates
- How to start and stop Nginx
I can't seem to get nginx to load anything on port :8080
brew install nginx --with-passengerfollowed brew's instructions but couldn't get localhost to work.
I have it running on my iMac but not on my MBP, is there some difference in configuration?