]> git.kaiwu.me - nginx.git/commitdiff
change emerg to a warn for absolute index
authorIgor Sysoev <igor@sysoev.ru>
Tue, 23 Oct 2007 14:15:06 +0000 (14:15 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 23 Oct 2007 14:15:06 +0000 (14:15 +0000)
src/http/modules/ngx_http_index_module.c

index bad1de3b02f81ddab735d61ca7789383e1256e0f..2863ff4348b1fbc0a24b5849293bbad8cd11957b 100644 (file)
@@ -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) {