Mercurial > hg > nginx
diff src/http/modules/ngx_http_index_handler.c @ 98:c9b243802a17
nginx-0.0.1-2003-05-30-18:27:59 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 30 May 2003 14:27:59 +0000 |
parents | 70d2345a903f |
children | a059e1aa65d4 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_index_handler.c +++ b/src/http/modules/ngx_http_index_handler.c @@ -14,7 +14,7 @@ static char *ngx_http_index_set_index(ng static ngx_command_t ngx_http_index_commands[] = { {ngx_string("index"), - NGX_HTTP_LOC_CONF|NGX_CONF_ANY, + NGX_HTTP_LOC_CONF|NGX_CONF_ANY1, ngx_http_index_set_index, NGX_HTTP_LOC_CONF_OFFSET, 0, @@ -280,7 +280,7 @@ static char *ngx_http_index_set_index(ng for (i = 1; i < cf->args->nelts; i++) { if (value[i].len == 0) { ngx_snprintf(ngx_conf_errstr, sizeof(ngx_conf_errstr) - 1, - "index \"%s\" is invalid", value[1].data); + "index \"%s\" is invalid", value[i].data); return ngx_conf_errstr; }