diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-05-30 14:27:59 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-05-30 14:27:59 +0000 |
commit | aa3436c04c222d57498bfa34c9fdec50f07fd08d (patch) | |
tree | ffb90c3e0993917338dffd4ad98a9f0b0e55e13c /src/http/modules/ngx_http_index_handler.c | |
parent | 1393325df8b1f530bf5c257fde39c26e8333d8d7 (diff) | |
download | nginx-aa3436c04c222d57498bfa34c9fdec50f07fd08d.tar.gz nginx-aa3436c04c222d57498bfa34c9fdec50f07fd08d.zip |
nginx-0.0.1-2003-05-30-18:27:59 import
Diffstat (limited to 'src/http/modules/ngx_http_index_handler.c')
-rw-r--r-- | src/http/modules/ngx_http_index_handler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_index_handler.c b/src/http/modules/ngx_http_index_handler.c index 0286669f2..c9ad91112 100644 --- 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(ngx_conf_t *cf, ngx_command_t *cmd, 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(ngx_conf_t *cf, ngx_command_t *cmd, 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; } |