Welcome! Log In Create A New Profile

Advanced

Re: 404 fallback only hitting 2/3 upstream sets

Maxim Dounin
August 08, 2012 06:32AM
Hello!

On Tue, Aug 07, 2012 at 01:15:45PM -0400, helliax wrote:

> I think i got it. I had to add the following directive under the server
> { } heading:
>
> recursive_error_pages on;
>
> I'm checking the access logs, and I'm seeing the third one now (ipA :
> ipB : ipC), and it's also returning the file correctly. I hope this is
> the right way.

It is, more or less. You should be careful though, as
recursive_error_pages set to on might easily result in infinite
loop (nginx will break it eventually, but nevertheless). I would
recommend limiting recursive_error_pages scope to minimum
possible.

In your case, it should be enough to set recursive_error_pages to
on in "location /".

Maxim Dounin

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

404 fallback only hitting 2/3 upstream sets

helliax August 07, 2012 12:55PM

Re: 404 fallback only hitting 2/3 upstream sets

helliax August 07, 2012 01:15PM

Re: 404 fallback only hitting 2/3 upstream sets

Maxim Dounin August 08, 2012 06:32AM

Re: 404 fallback only hitting 2/3 upstream sets

helliax August 08, 2012 12:35PM

Re: 404 fallback only hitting 2/3 upstream sets

Maxim Dounin August 08, 2012 12:52PM

Re: 404 fallback only hitting 2/3 upstream sets

helliax August 08, 2012 12:55PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 58
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready