Welcome! Log In Create A New Profile

Advanced

Re: 404 fallback only hitting 2/3 upstream sets

Maxim Dounin
August 08, 2012 12:52PM
Hello!

On Wed, Aug 08, 2012 at 12:35:41PM -0400, helliax wrote:

> Thanks for heads up, Maxim. In what cases would it go into an infinite
> loop if I left it outside? I had thought that "location /" would catch
> all requests, and setting
>
> proxy_intercept_errors off
>
> at the last handler would break the chain by returning whatever upstream
> setC returned?

Even with proxy_intercept_errors set to off errors might happen -
e.g. 502 will be generated if nginx won't be able to connect to
upstream for some reason.

In any case I don't think that your config creates a loop (unless
you have some error_pages defined at http level). I've mostly
wrote about recursive_error_pages in general.

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: 82
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