Welcome! Log In Create A New Profile

Advanced

Re: Proxy Retry Logic

December 22, 2010 09:22PM
Hi,

On 23/12/2010 03:51, Sirsiwal, Umesh wrote:
> I tried replacing /sub1 and /sub2 with named location and I get:
> 2010/12/22 20:48:52 [debug] 1637#0: *3 try to use file: "@sub1" "/Users/umesh/nginx/install/html@sub1"
> 2010/12/22 20:48:52 [debug] 1637#0: *3 try to use file: "@sub2" "/Users/umesh/nginx/install/html@sub2"
> This was followed by testing @s which served the content.
>
Actually, I think you may not be able to have more than one named
location in the try_files (it's been a while since I've used it, and I'd
forgotten that fact). I just had a look in the code, and it appears
that way.

You may find it easier to patch try_files than to write all your
subrequest code. I don't think it would be too hard. You'd need to
look at ngx_try_files_phase_hander() (in ngx_http_core_module.c), and
possibly at ngx_http_named_location().

Cheers,

Marcus.



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

Proxy Retry Logic

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

Re: Proxy Retry Logic

Maxim Dounin 910 December 22, 2010 06:40PM

RE: Proxy Retry Logic

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

Re: Proxy Retry Logic

Eugaia 923 December 22, 2010 08:20PM

RE: Proxy Retry Logic

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

Re: Proxy Retry Logic

Eugaia 1014 December 22, 2010 09:10PM

RE: Proxy Retry Logic

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

Re: Proxy Retry Logic

Eugaia 895 December 22, 2010 09:38PM

RE: Proxy Retry Logic

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

Re: Proxy Retry Logic

Eugaia 1141 December 23, 2010 04:00AM

Re: Proxy Retry Logic

Eugaia 971 December 23, 2010 04:36AM

RE: Proxy Retry Logic

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

Re: Proxy Retry Logic

Eugaia 847 December 22, 2010 09:22PM



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

Online Users

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