From 977fd90d2ba77a59492a3fab0d77c54c5f034ec6 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 19 Jan 2009 11:24:25 +0000 Subject: [PATCH] try_files should work with files only --- src/http/ngx_http_core_module.c | 4 ++++ 1 file changed, 4 insertions(+) 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;