mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 06:03:31 -06: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
@ -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…
Reference in New Issue
Block a user