Nginx : Cannot listen on port 80 ... only port 8080 works on OSX 10.11 Nginx : Cannot listen on port 80 ... only port 8080 works on OSX 10.11 nginx nginx

Nginx : Cannot listen on port 80 ... only port 8080 works on OSX 10.11


You just can run services on ports below to 1024 as sudo.

Running on the go:

$ sudo brew services restart nginx

Starting with the system:

$ sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons$ sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist

Note that you must set up your server to listen to 80 inside your config file and make sure there's no other process running at port 80.


Check firwall or iptables.

Port 80 might be blocked. Try stopping firewall or iptables service.

If it is blocked, then add entry to allow port 80