mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (of.is_dir && !test_dir) {
|
if (of.is_dir != test_dir) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user