]> git.kaiwu.me - nginx.git/commit
Fixed config parsing of the last try_files parameter.
authorSergey Kandaurov <pluknet@nginx.com>
Wed, 28 May 2014 16:18:05 +0000 (20:18 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Wed, 28 May 2014 16:18:05 +0000 (20:18 +0400)
commit0750df4f16d6e39dfdf36ce69f363499aceff7d5
tree9a40daf9a0e3af59d5ee47f2a03b508cf512de66
parente9a70114a2b91a5d60f6205739d4207575e8495c
Fixed config parsing of the last try_files parameter.

Do not taste the last parameter against directory, as otherwise it would
result in the trailing slash being cut from the parameter value.

Notably, this prevents an internal redirect to an empty URI
if the parameter is set to the literal slash:

    location / { try_files $uri /; }
src/http/ngx_http_core_module.c