Nginx : Cannot listen on port 80 ... only port 8080 works on OSX 10.11
<p>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</p>
<p>when listening on port 8080 no problem I can request <a href="http://example.local:8080" rel="nofollow noreferrer">http://example.local:8080</a></p>
<pre><code>server {
    listen       8080;
    server_name  example.local;
    root HTML;
</code></pre>
<p>And then run:</p>
<pre><code> sudo lsof -i -P | grep -i &quot;80&quot;
 nginx     8254           root   10u  IPv4 0x643a3abbad7bf485      0t0     TCP *:8080 (LISTEN)
 nginx     8392           yves   10u  IPv4 0x643a3abbad7bf485      0t0    TCP *:8080 (LISTEN)
</code></pre>
<p>BUT when I change the port to 80, I cannot reach <a href="http://example.local:80" rel="nofollow noreferrer">http://example.local:80</a></p>
<pre><code>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)
</code></pre>
<p>Safari canot open the page
however I can still request <a href="http://example.local:8080" rel="nofollow noreferrer">http://example.local:8080</a></p>
<p>very weird .... Nginx IS LISTENING on 80 ...  what can I do ?</p>