diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-08-13 09:00:13 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-08-13 09:00:13 +0000 |
commit | d1853490daa04fc8ada502ab8649af477ca63c2f (patch) | |
tree | e57f12c10d7160fb6100057b72283c4363161f1b /src | |
parent | d28170c1831d82551b0ec71fe1352ccf37a84ae4 (diff) | |
download | nginx-d1853490daa04fc8ada502ab8649af477ca63c2f.tar.gz nginx-d1853490daa04fc8ada502ab8649af477ca63c2f.zip |
disable error_page loop in 500 error when recursive errors are enabled
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_special_response.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c index 612714978..fd33eaf70 100644 --- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -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; |