From: Igor Sysoev Date: Mon, 19 Jan 2009 11:24:25 +0000 (+0000) Subject: try_files should work with files only X-Git-Tag: release-0.7.31~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=977fd90d2ba77a59492a3fab0d77c54c5f034ec6;p=nginx.git 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 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;