changeset 2320:3a00188e49c5 stable-0.6

r2175 merge: disable error_page loop in 500 error when recursive errors are enabled
author Igor Sysoev <igor@sysoev.ru>
date Thu, 20 Nov 2008 16:58:41 +0000
parents 0c314f62052d
children 2577098d65ac
files src/http/ngx_http_special_response.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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_ht
 
     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;