NGINX not binding to localhost:80 only 127.0.0.1:80

Jonathan Matthews contact at jpluscplusm.com
Thu Dec 20 21:10:57 UTC 2012


On 20 December 2012 20:41, Bill Culp <bill.culp at me.com> wrote:
> Ive had this issue with tomcat apache in the past and always fixed it by specifying localhost as part of the listen directive - not working with NGINX on OS X.
>
> NGINX is responding to 127.0.0.1 - but localhost it just drops the connection (its not refusing the connection, just dropping it)…
>
> Is there a way to fix this I have tried listen *:80, listen localhost:80  and still I cant reach it through the browser using localhost.
>
> localhost is resolvable with ping and has its entry in the hosts file.

Posting your configuration would probably help people diagnose your
issue more easily ...

Jonathan



More information about the nginx mailing list