Welcome! Log In Create A New Profile

Advanced

Re: nginx-1.4 proxy requests being continious

Maxim Dounin
May 11, 2013 07:44PM
Hello!

On Sat, May 11, 2013 at 04:13:38PM +1000, Daniel Black wrote:

[...]

> > A request for /img/file_doesnt_exist.jpg results in the backend server
> > (192.168.129.90) getting continuous requests for the same file (which
> > doesn't exist there either so 404 each time), while the original
> > requester waits and nginx keeps asking the backend the same.
> >
> > I'm using the nginx-1.4.1 from the debian squeeze repository.

[...]

> > server 173.230.136.6 backup;

[...]

> > proxy_next_upstream error timeout invalid_header http_500 http_502
> > http_503 http_504 http_404;

What you describe looks very familiar - there was such a bug which
manifested itself with backup servers and proxy_next_upstream
http_404. It was fixed in 1.3.0/1.2.1 though:


*) Bugfix: nginx might loop infinitely over backends if the
"proxy_next_upstream" directive with the "http_404" parameter was
used and there were backup servers specified in an upstream block.

Are you sure you are using 1.4.1 on your frontend (note: it's
usually not enough to check version of nginx binary on disk, as
running nginx binary may be different)? Could you please provide
frontend's debug log?

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx-1.4 proxy requests being continious

Daniel Black May 08, 2013 08:40PM

Re: nginx-1.4 proxy requests being continious

Daniel Black May 11, 2013 02:14AM

Re: nginx-1.4 proxy requests being continious

Maxim Dounin May 11, 2013 07:44PM

Re: nginx-1.4 proxy requests being continious

Daniel Black May 11, 2013 10:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 268
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready