diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-01-19 11:24:25 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-01-19 11:24:25 +0000 |
commit | 977fd90d2ba77a59492a3fab0d77c54c5f034ec6 (patch) | |
tree | bda2b7f4fd8a43d02d2087502fc35fb93ccb5461 /src/http/ngx_http_core_module.c | |
parent | c1a2b978de2831883cbaa791cf0a7483c270bf66 (diff) | |
download | nginx-977fd90d2ba77a59492a3fab0d77c54c5f034ec6.tar.gz nginx-977fd90d2ba77a59492a3fab0d77c54c5f034ec6.zip |
try_files should work with files only
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r-- | src/http/ngx_http_core_module.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 7d53ca155..d44933ca3 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1172,6 +1172,10 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r, continue; } + if (!of.is_file) { + continue; + } + path.len -= root; path.data += root; |