try_files should work with files only

This commit is contained in:
Igor Sysoev 2009-01-19 11:24:25 +00:00
parent c1a2b978de
commit 977fd90d2b

View File

@ -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;