aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_index_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/modules/ngx_http_index_handler.c')
-rw-r--r--src/http/modules/ngx_http_index_handler.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/http/modules/ngx_http_index_handler.c b/src/http/modules/ngx_http_index_handler.c
index 722ddecf1..2dbd6aa09 100644
--- a/src/http/modules/ngx_http_index_handler.c
+++ b/src/http/modules/ngx_http_index_handler.c
@@ -35,13 +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 /* init filters */
+ ngx_http_index_merge_conf /* merge location config */
};
@@ -74,10 +74,10 @@ int ngx_http_index_handler(ngx_http_request_t *r)
ngx_http_core_loc_conf_t *core_cf;
cf = (ngx_http_index_conf_t *)
- ngx_http_get_module_loc_conf(r, ngx_http_index_module);
+ ngx_http_get_module_loc_conf(r, ngx_http_index_module_ctx);
core_cf = (ngx_http_core_loc_conf_t *)
- ngx_http_get_module_loc_conf(r, ngx_http_core_module);
+ ngx_http_get_module_loc_conf(r, ngx_http_core_module_ctx);
ngx_test_null(r->path.data,
ngx_palloc(r->pool,