Installing Brew with Nginx and LUA

brew install nginx-full --with-lua-module --with-set-misc-module  
Docroot is: /usr/local/var/www

The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that  
nginx can run without sudo.

nginx will load all files in /usr/local/etc/nginx/servers/.

- Tips -
Run port 80:  
 $ sudo chown root:wheel /usr/local/Cellar/nginx-full/1.8.0_2/bin/nginx
 $ sudo chmod u+s /usr/local/Cellar/nginx-full/1.8.0_2/bin/nginx
Reload config:  
 $ nginx -s reload
Reopen Logfile:  
 $ nginx -s reopen
Stop process:  
 $ nginx -s stop
Waiting on exit process  
 $ nginx -s quit

To have launchd start homebrew/nginx/nginx-full at login:  
  ln -sfv /usr/local/opt/nginx-full/*.plist /Library/LaunchDaemons
Then to load homebrew/nginx/nginx-full now:  
  launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx-full.plist
==> Summary
🍺  /usr/local/Cellar/nginx-full/1.8.0_2: 7 files, 1.2M, built in 60 seconds
comments powered by Disqus