comparison src/http/ngx_http_core_module.c @ 3401:9e7926763f87

allow to handle 301/302 in error_page
author Igor Sysoev <igor@sysoev.ru>
date Wed, 23 Dec 2009 15:31:16 +0000
parents 4e15548b29d4
children fcd72b8d69f3
comparison
equal deleted inserted replaced
3400:8e407e7c899e 3401:9e7926763f87
3898 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 3898 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
3899 "invalid value \"%V\"", &value[i]); 3899 "invalid value \"%V\"", &value[i]);
3900 return NGX_CONF_ERROR; 3900 return NGX_CONF_ERROR;
3901 } 3901 }
3902 3902
3903 if (err->status < 400 || err->status > 599) { 3903 if (err->status < 300 || err->status > 599) {
3904 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 3904 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
3905 "value \"%V\" must be between 400 and 599", 3905 "value \"%V\" must be between 300 and 599",
3906 &value[i]); 3906 &value[i]);
3907 return NGX_CONF_ERROR; 3907 return NGX_CONF_ERROR;
3908 } 3908 }
3909 3909
3910 if (overwrite >= 0) { 3910 if (overwrite >= 0) {