diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2008-11-20 16:58:41 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2008-11-20 16:58:41 +0000 |
| commit | 4cbfcd7a99149092c09a88882410695191014847 (patch) | |
| tree | e9f3e0d21eb2f3785c664b2c111d8eb24867d70a | |
| parent | a70bc258d0c6514fd181d9993ccf7738a6e1c58e (diff) | |
| download | nginx-4cbfcd7a99149092c09a88882410695191014847.tar.gz nginx-4cbfcd7a99149092c09a88882410695191014847.tar.bz2 | |
r2175 merge:
disable error_page loop in 500 error when recursive errors are enabled
| -rw-r--r-- | src/http/ngx_http_special_response.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
