diff options
author | Damien Tournoud <damien@commerceguys.com> | 2015-01-21 02:26:32 +0300 |
---|---|---|
committer | Damien Tournoud <damien@commerceguys.com> | 2015-01-21 02:26:32 +0300 |
commit | 59969c22ce287c951eb759792bf0df5d01f94aae (patch) | |
tree | 9ce8fbaacefd1ef83f16feeb8b1aa0ca665d2588 | |
parent | 2bae4205abd1583a5f3e2dfdc3174c1ef0c3828d (diff) |
Fixed try_files directory test to match only a directory.
Historically, it was possible to match either a file or directory
in the following configuration:
location / {
try_files $uri/ =404;
}
-rw-r--r-- | src/http/ngx_http_core_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index d8ff53bfe..0542b2871 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1353,7 +1353,7 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r, continue; } - if (of.is_dir && !test_dir) { + if (of.is_dir != test_dir) { continue; } |