OSX 10.11 I installed the latest nginx 1.9.9 (from source and compiled ) the configuration file /usr/local/conf/nginx.conf syntax is ok
when listening on port 8080 no problem I can request http://example.local:8080
server {
listen 8080;
server_name example.local;
root HTML;
And then run:
sudo lsof -i -P | grep -i "80"
nginx 8254 root 10u IPv4 0x643a3abbad7bf485 0t0 TCP *:8080 (LISTEN)
nginx 8392 yves 10u IPv4 0x643a3abbad7bf485 0t0 TCP *:8080 (LISTEN)
BUT when I change the port to 80, I cannot reach http://example.local:80
server {
listen 80;
server_name example.local;
root html;
sudo nginx -s reload
nginx 8254 root 10u IPv4 0x643a3abbad7bf485 0t0 TCP *:8080 (LISTEN)
nginx 8254 root 18u IPv4 0x643a3abbadbb9485 0t0 TCP *:80 (LISTEN)
nginx 8430 yves 10u IPv4 0x643a3abbad7bf485 0t0 TCP *:8080 (LISTEN)
nginx 8430 yves 18u IPv4 0x643a3abbadbb9485 0t0 TCP *:80 (LISTEN)
Safari canot open the page however I can still request http://example.local:8080
very weird .... Nginx IS LISTENING on 80 ... what can I do ?
sudo apachectl stop
?