./configure --with-http_ssl_module
make
sudo make install
find . -name "*.c" | grep module
brew install nginx-full --with-rtmp-module --with-flv
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.
- Tips -
Run port 80:
$ sudo chown root:wheel /usr/local/Cellar/nginx-full/1.6.2/sbin/nginx
$ sudo chmod u+s /usr/local/Cellar/nginx-full/1.6.2/sbin/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 nginx-full at login:
ln -sfv /usr/local/opt/nginx-full/*.plist ~/Library/LaunchAgents
Then to load nginx-full now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx-full.plist