mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 21:52:41 +08:00
try_files should work with files only
This commit is contained in:
parent
c1a2b978de
commit
977fd90d2b
@ -1172,6 +1172,10 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!of.is_file) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
path.len -= root;
|
path.len -= root;
|
||||||
path.data += root;
|
path.data += root;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user