mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 11:52:00 +00:00
Fixed try_files directory test to match only a directory.
Historically, it was possible to match either a file or directory
in the following configuration:
location / {
try_files $uri/ =404;
}
This commit is contained in:
parent
2bae4205ab
commit
59969c22ce
1 changed files with 1 additions and 1 deletions
|
|
@ -1353,7 +1353,7 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r,
|
|||
continue;
|
||||
}
|
||||
|
||||
if (of.is_dir && !test_dir) {
|
||||
if (of.is_dir != test_dir) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue