Proxy Retry Logic
ngx.eugaia at gmail.com
Thu Dec 23 05:21:25 MSK 2010
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 at sub1"
> 2010/12/22 20:48:52 [debug] 1637#0: *3 try to use file: "@sub2" "/Users/umesh/nginx/install/html at 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
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().
More information about the nginx-devel