Welcome! Log In Create A New Profile

Advanced

RE: Proxy Retry Logic

Sirsiwal, Umesh
December 22, 2010 09:52PM
I just tried using error_pages and have my post_subrequest return the error code as Maxim had suggested.

That works very well. The only oddity is that I get two post_subrequest callback for a single subrequest. That is something I can handle my module.

Thanks for your help.
-Umesh

________________________________________
From: Eugaia [ngx.eugaia@gmail.com]
Sent: Wednesday, December 22, 2010 9:36 PM
To: nginx-devel@nginx.org
Subject: Re: Proxy Retry Logic

Hi,

On 23/12/2010 04:25, Sirsiwal, Umesh wrote:
> 0/12/22 20:48:52 [debug] 1637#0: *3 try to use file: "@sub2" "/Users/umesh/nginx/install/html@sub2"
> At least according to this e-mail http://forum.nginx.org/read.php?2,28297 chain, it seems I cannot use named locations in try_files directory except as the last location.
Yes. Sorry - forgot.

How about returning different status codes from your proxies instead,
then have various error_page 434 = @named declarations? You'll
probably need to have recursive_error_pages
(http://wiki.nginx.org/HttpCoreModule#recursive_error_pages) on to work
correctly.

I think error pages can be defined with non-standard error codes.

Marcus.

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel

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

Proxy Retry Logic

Sirsiwal, Umesh 2396 December 22, 2010 02:28PM

Re: Proxy Retry Logic

Maxim Dounin 907 December 22, 2010 06:40PM

RE: Proxy Retry Logic

Sirsiwal, Umesh 994 December 22, 2010 07:56PM

Re: Proxy Retry Logic

Eugaia 921 December 22, 2010 08:20PM

RE: Proxy Retry Logic

Sirsiwal, Umesh 941 December 22, 2010 08:52PM

Re: Proxy Retry Logic

Eugaia 1011 December 22, 2010 09:10PM

RE: Proxy Retry Logic

Sirsiwal, Umesh 838 December 22, 2010 09:26PM

Re: Proxy Retry Logic

Eugaia 893 December 22, 2010 09:38PM

RE: Proxy Retry Logic

Sirsiwal, Umesh 910 December 22, 2010 09:52PM

Re: Proxy Retry Logic

Eugaia 1138 December 23, 2010 04:00AM

Re: Proxy Retry Logic

Eugaia 968 December 23, 2010 04:36AM

RE: Proxy Retry Logic

Sirsiwal, Umesh 1147 December 23, 2010 08:12AM

Re: Proxy Retry Logic

Eugaia 845 December 22, 2010 09:22PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 215
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