aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-01-19 11:24:25 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-01-19 11:24:25 +0000
commit977fd90d2ba77a59492a3fab0d77c54c5f034ec6 (patch)
treebda2b7f4fd8a43d02d2087502fc35fb93ccb5461 /src/http/ngx_http_core_module.c
parentc1a2b978de2831883cbaa791cf0a7483c270bf66 (diff)
downloadnginx-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.c4
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;