comparison src/http/modules/ngx_http_index_module.c @ 1601:cba2bb1796e4

change emerg to a warn for absolute index
author Igor Sysoev <igor@sysoev.ru>
date Tue, 23 Oct 2007 14:15:06 +0000
parents 1d659775325a
children 55c8aede41f5
comparison
equal deleted inserted replaced
1600:1d659775325a 1601:cba2bb1796e4
471 471
472 value = cf->args->elts; 472 value = cf->args->elts;
473 473
474 for (i = 1; i < cf->args->nelts; i++) { 474 for (i = 1; i < cf->args->nelts; i++) {
475 if (value[i].data[0] == '/' && i != cf->args->nelts - 1) { 475 if (value[i].data[0] == '/' && i != cf->args->nelts - 1) {
476 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 476 ngx_conf_log_error(NGX_LOG_WARN, cf, 0,
477 "only the last index in \"index\" directive " 477 "only the last index in \"index\" directive "
478 "may be absolute"); 478 "should be absolute");
479 return NGX_CONF_ERROR;
480 } 479 }
481 480
482 if (value[i].len == 0) { 481 if (value[i].len == 0) {
483 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 482 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
484 "index \"%V\" in \"index\" directive is invalid", 483 "index \"%V\" in \"index\" directive is invalid",