comparison src/http/modules/ngx_http_index_handler.c @ 71:59229033ae93

nginx-0.0.1-2003-04-08-19:40:10 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 08 Apr 2003 15:40:10 +0000
parents e43f406e4525
children 17ab1af8c3dd
comparison
equal deleted inserted replaced
70:e320bf51c4e3 71:59229033ae93
33 {ngx_string(""), 0, NULL, 0, 0} 33 {ngx_string(""), 0, NULL, 0, 0}
34 }; 34 };
35 35
36 36
37 ngx_http_module_t ngx_http_index_module_ctx = { 37 ngx_http_module_t ngx_http_index_module_ctx = {
38 NGX_HTTP_MODULE,
39
38 NULL, /* create server config */ 40 NULL, /* create server config */
39 NULL, /* init server config */ 41 NULL, /* init server config */
40 42
41 ngx_http_index_create_conf, /* create location config */ 43 ngx_http_index_create_conf, /* create location config */
42 ngx_http_index_merge_conf, /* merge location config */ 44 ngx_http_index_merge_conf /* merge location config */
43
44 NULL /* init filters */
45 }; 45 };
46 46
47 47
48 ngx_module_t ngx_http_index_module = { 48 ngx_module_t ngx_http_index_module = {
49 0, /* module index */ 49 0, /* module index */
72 72
73 ngx_http_index_conf_t *cf; 73 ngx_http_index_conf_t *cf;
74 ngx_http_core_loc_conf_t *core_cf; 74 ngx_http_core_loc_conf_t *core_cf;
75 75
76 cf = (ngx_http_index_conf_t *) 76 cf = (ngx_http_index_conf_t *)
77 ngx_http_get_module_loc_conf(r, ngx_http_index_module); 77 ngx_http_get_module_loc_conf(r, ngx_http_index_module_ctx);
78 78
79 core_cf = (ngx_http_core_loc_conf_t *) 79 core_cf = (ngx_http_core_loc_conf_t *)
80 ngx_http_get_module_loc_conf(r, ngx_http_core_module); 80 ngx_http_get_module_loc_conf(r, ngx_http_core_module_ctx);
81 81
82 ngx_test_null(r->path.data, 82 ngx_test_null(r->path.data,
83 ngx_palloc(r->pool, 83 ngx_palloc(r->pool,
84 core_cf->doc_root.len + r->uri.len 84 core_cf->doc_root.len + r->uri.len
85 + cf->max_index_len), 85 + cf->max_index_len),