commit | 977fd90d2ba77a59492a3fab0d77c54c5f034ec6 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Mon Jan 19 11:24:25 2009 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Mon Jan 19 11:24:25 2009 +0000 |
tree | bda2b7f4fd8a43d02d2087502fc35fb93ccb5461 | |
parent | c1a2b978de2831883cbaa791cf0a7483c270bf66 [diff] [blame] |
try_files should work with files only
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 7d53ca1..d44933c 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c
@@ -1172,6 +1172,10 @@ continue; } + if (!of.is_file) { + continue; + } + path.len -= root; path.data += root;