Mercurial > hg > nginx
diff src/http/ngx_http_special_response.c @ 2174:20a7fc523aec
disable error_page loop in 500 error when recursive errors are enabled
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 13 Aug 2008 09:00:13 +0000 |
parents | eba265857dc2 |
children | 808547aa8c12 |
line wrap: on
line diff
--- 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_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;