after redirecting by error_page any rewrite directive will return this code,

bug introduced in r727
This commit is contained in:
Igor Sysoev 2006-10-03 18:06:44 +00:00
parent afe577cc6c
commit cccc185623

View File

@ -178,6 +178,10 @@ ngx_http_rewrite_handler(ngx_http_request_t *r)
code(e);
}
if (e->status == NGX_DECLINED) {
return NGX_DECLINED;
}
if (r->err_status == 0) {
return e->status;
}