Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-11-11 21:13:43 +0300
committerIgor Sysoev <igor@sysoev.ru>2003-11-11 21:13:43 +0300
commit27c30f9919ed695ab718c3365a445d47a14fd80f (patch)
treeb8bd50e2fcecf477f1bb05d61fc7626c06a4442b /src/http/ngx_http_special_response.c
parentd59a047a7070dc6af13b2e35c097efccc8ce38d0 (diff)
nginx-0.0.1-2003-11-11-21:13:43 import
Diffstat (limited to 'src/http/ngx_http_special_response.c')
-rw-r--r--src/http/ngx_http_special_response.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c
index c1cb23aa4..8e93e90ce 100644
--- a/src/http/ngx_http_special_response.c
+++ b/src/http/ngx_http_special_response.c
@@ -203,11 +203,12 @@ int ngx_http_special_response_handler(ngx_http_request_t *r, int error)
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
- if (!r->error_page && clcf->error_pages) {
+ if (r->err_ctx == NULL && clcf->error_pages) {
err_page = clcf->error_pages->elts;
for (i = 0; i < clcf->error_pages->nelts; i++) {
if (err_page[i].code == error) {
- r->error_page = 1;
+ r->err_status = error;
+ r->err_ctx = r->ctx;
return ngx_http_internal_redirect(r, &err_page[i].uri, NULL);
}
}