aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_index_handler.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-03-20 16:09:44 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-03-20 16:09:44 +0000
commitdc479b4d98d5b65b78689c5282a31c70efadd928 (patch)
tree7caf32d89eec03484b14ebe74dfefd2a80c8fa02 /src/http/modules/ngx_http_index_handler.c
parent90ace68b69606b885578686e19d499a50d5e80b7 (diff)
downloadnginx-dc479b4d98d5b65b78689c5282a31c70efadd928.tar.gz
nginx-dc479b4d98d5b65b78689c5282a31c70efadd928.zip
nginx-0.0.1-2003-03-20-19:09:44 import
Diffstat (limited to 'src/http/modules/ngx_http_index_handler.c')
-rw-r--r--src/http/modules/ngx_http_index_handler.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/http/modules/ngx_http_index_handler.c b/src/http/modules/ngx_http_index_handler.c
index ebbeac987..722ddecf1 100644
--- a/src/http/modules/ngx_http_index_handler.c
+++ b/src/http/modules/ngx_http_index_handler.c
@@ -35,20 +35,13 @@ static ngx_command_t ngx_http_index_commands[] = {
ngx_http_module_t ngx_http_index_module_ctx = {
- NGX_HTTP_MODULE,
-
NULL, /* create server config */
NULL, /* init server config */
+
ngx_http_index_create_conf, /* create location config */
ngx_http_index_merge_conf, /* merge location config */
- NULL, /* translate handler */
-
- NULL, /* output header filter */
- NULL, /* next output header filter */
- NULL, /* output body filter */
- NULL, /* next output body filter */
-
+ NULL /* init filters */
};
@@ -288,18 +281,18 @@ static char *ngx_http_index_merge_conf(ngx_pool_t *p, void *parent, void *child)
static char *ngx_http_index_set_index(ngx_conf_t *cf, ngx_command_t *cmd,
char *conf)
{
- ngx_http_index_conf_t *icf = (ngx_http_index_conf_t *) conf;
+ ngx_http_index_conf_t *lcf = (ngx_http_index_conf_t *) conf;
int i;
ngx_str_t *index, *value;
value = (ngx_str_t *) cf->args->elts;
for (i = 1; i < cf->args->nelts; i++) {
- ngx_test_null(index, ngx_push_array(icf->indices), NGX_CONF_ERROR);
+ ngx_test_null(index, ngx_push_array(lcf->indices), NGX_CONF_ERROR);
index->len = value[i].len;
index->data = value[i].data;
- if (icf->max_index_len < index->len) {
- icf->max_index_len = index->len;
+ if (lcf->max_index_len < index->len) {
+ lcf->max_index_len = index->len;
}
}