From 19220477205be588f0473d5b19dc042817eeb6c9 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 20 Nov 2008 16:58:41 +0000 Subject: [PATCH] r2175 merge: disable error_page loop in 500 error when recursive errors are enabled --- src/http/ngx_http_special_response.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c index 00b2251d8..11c41d55b 100644 --- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -370,7 +370,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;