]> git.kaiwu.me - nginx.git/commitdiff
disable error_page loop in 500 error when recursive errors are enabled
authorIgor Sysoev <igor@sysoev.ru>
Wed, 13 Aug 2008 09:00:13 +0000 (09:00 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 13 Aug 2008 09:00:13 +0000 (09:00 +0000)
src/http/ngx_http_special_response.c

index 61271497835fd1760b916abd734843720bde1ed8..fd33eaf70625e1575dc08ad9b3c50b056da42e97 100644 (file)
@@ -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;