A try_files problem
Michał Jaszczyk
jasiu85 at gmail.com
Fri Mar 6 01:16:34 MSK 2009
> You may try a patch in email with subject "captures in regex locations":
>
> location ~ "^/dynamic/special_request/([0-9]{2})([0-9]{2})(.*)$" {
> set $proxy_store_path /$1/$2/$3;
>
> try_files $proxy_store_path /backend/$uri;
> }
I tried the patch but it I still can't make it working. Here's part of
my config file:
location ~
"^/dynamic/special_request/([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{44})$"
{
root /var/nginx/storage_cache;
set $mirror_path /$1/$2/$3;
try_files $mirror_path /storage$uri;
}
And here's part of the debug:
2009/03/05 23:11:13 [debug] 14755#0: *1 using configuration
"^/dynamic/special_request/([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{44})$"
2009/03/05 23:11:13 [debug] 14755#0: *1 http cl:-1 max:1048576
2009/03/05 23:11:13 [debug] 14755#0: *1 generic phase: 3
2009/03/05 23:11:13 [debug] 14755#0: *1 http script complex value
2009/03/05 23:11:13 [debug] 14755#0: *1 http script copy: "/"
2009/03/05 23:11:13 [debug] 14755#0: *1 http script capture: ""
2009/03/05 23:11:13 [debug] 14755#0: *1 http script copy: "/"
2009/03/05 23:11:13 [debug] 14755#0: *1 http script capture: ""
2009/03/05 23:11:13 [debug] 14755#0: *1 http script copy: "/"
2009/03/05 23:11:13 [debug] 14755#0: *1 http script capture: ""
2009/03/05 23:11:13 [debug] 14755#0: *1 http script set $mirror_path
It seems like captures are not used. Any idea?
Regards,
--
Michał Jaszczyk
More information about the nginx
mailing list