connect() to 127.0.0.1:80 failed (99: Cannot assign requested address

Ruslan Ermilov ru at nginx.com
Mon Jul 15 11:44:35 UTC 2013


On Sun, Jul 14, 2013 at 12:53:27AM +0200, Atul B. wrote:
> I dont think another nginx is already running as when I stopped my nginx 
> instance, i cannot see niginx running using the mentioned command...
> The log error that i am getting is when I try to run any php file in my 
> browser.
> However, for static html files, nginx is servig them fine

The error you see is when a local port range gets exhausted
for the (src=127.0.0.1, dst=127.0.0.1:80) triple.

This is because there's no Apache listening on 127.0.0.1:80,
so nginx proxies request to itself in an endless loop.



More information about the nginx mailing list