# HG changeset patch # User Igor Sysoev # Date 1232364265 0 # Node ID 1e53534e680080a2aa117eb711440a137410112a # Parent 95f078e7d743d7ccbf177770d399d23fddd785ea 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 --- 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_r continue; } + if (!of.is_file) { + continue; + } + path.len -= root; path.data += root;