aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-10-23 14:15:06 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-10-23 14:15:06 +0000
commit747bb06d626c7bdef54d6602cabadcc2abb8ae9e (patch)
tree81cc4961199b8fb2ea2efd7de881eed8ba2e2c56 /src
parent704bafb5c218e01465c765f95edc27bf0ad1f4aa (diff)
downloadnginx-747bb06d626c7bdef54d6602cabadcc2abb8ae9e.tar.gz
nginx-747bb06d626c7bdef54d6602cabadcc2abb8ae9e.zip
change emerg to a warn for absolute index
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_index_module.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http/modules/ngx_http_index_module.c b/src/http/modules/ngx_http_index_module.c
index bad1de3b0..2863ff434 100644
--- a/src/http/modules/ngx_http_index_module.c
+++ b/src/http/modules/ngx_http_index_module.c
@@ -473,10 +473,9 @@ ngx_http_index_set_index(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
for (i = 1; i < cf->args->nelts; i++) {
if (value[i].data[0] == '/' && i != cf->args->nelts - 1) {
- ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
+ ngx_conf_log_error(NGX_LOG_WARN, cf, 0,
"only the last index in \"index\" directive "
- "may be absolute");
- return NGX_CONF_ERROR;
+ "should be absolute");
}
if (value[i].len == 0) {