Mercurial > hg > nginx
changeset 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 | 11c59ecbd04f |
children | a69886fc2864 |
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 Wed Aug 13 08:32:35 2008 +0000 +++ b/src/http/ngx_http_special_response.c Wed Aug 13 09:00:13 2008 +0000 @@ -371,7 +371,7 @@ 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;