Klaus Demo nginx / e146ebd
allow to handle 301/302 in error_page Igor Sysoev 11 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
38993899 return NGX_CONF_ERROR;
39003900 }
39013901
3902 if (err->status < 400 || err->status > 599) {
3902 if (err->status < 300 || err->status > 599) {
39033903 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
3904 "value \"%V\" must be between 400 and 599",
3904 "value \"%V\" must be between 300 and 599",
39053905 &value[i]);
39063906 return NGX_CONF_ERROR;
39073907 }
15471547
15481548 /* rc == NGX_OK */
15491549
1550 if (u->headers_in.status_n >= NGX_HTTP_BAD_REQUEST) {
1550 if (u->headers_in.status_n > NGX_HTTP_SPECIAL_RESPONSE) {
15511551
15521552 if (r->subrequest_in_memory) {
15531553 u->buffer.last = u->buffer.pos;