try_files should work with files only

This commit is contained in:
Igor Sysoev 2009-01-19 11:24:25 +00:00
parent 80165f6e52
commit bd6cc5e1f8
1 changed files with 4 additions and 0 deletions

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;