mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
change emerg to a warn for absolute index
This commit is contained in:
parent
704bafb5c2
commit
747bb06d62
1 changed files with 2 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue