mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 03:21:08 +00:00
disable error_page loop in 500 error when recursive errors are enabled
This commit is contained in:
parent
d28170c183
commit
d1853490da
1 changed files with 1 additions and 1 deletions
|
|
@ -371,7 +371,7 @@ ngx_http_special_response_handler(ngx_http_request_t *r, ngx_int_t error)
|
|||
|
||||
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
|
||||
|
||||
if (!r->error_page && clcf->error_pages) {
|
||||
if (!r->error_page && clcf->error_pages && r->uri_changes != 0) {
|
||||
|
||||
if (clcf->recursive_error_pages == 0) {
|
||||
r->error_page = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue