Mercurial > hg > nginx
comparison src/http/modules/ngx_http_access_handler.c @ 396:6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 18 Jul 2004 19:11:20 +0000 |
parents | 5659d773cfa8 |
children | 37b5381fb6d8 |
comparison
equal
deleted
inserted
replaced
395:f8f0f1834266 | 396:6f3b20c1ac50 |
---|---|
188 | 188 |
189 | 189 |
190 static ngx_int_t ngx_http_access_init(ngx_cycle_t *cycle) | 190 static ngx_int_t ngx_http_access_init(ngx_cycle_t *cycle) |
191 { | 191 { |
192 ngx_http_handler_pt *h; | 192 ngx_http_handler_pt *h; |
193 ngx_http_conf_ctx_t *ctx; | |
194 ngx_http_core_main_conf_t *cmcf; | 193 ngx_http_core_main_conf_t *cmcf; |
195 | 194 |
196 #if 0 | |
197 ctx = (ngx_http_conf_ctx_t *) cycle->conf_ctx[ngx_http_module.index]; | |
198 cmcf = ctx->main_conf[ngx_http_core_module.ctx_index]; | |
199 #endif | |
200 cmcf = ngx_http_cycle_get_module_main_conf(cycle, ngx_http_core_module); | 195 cmcf = ngx_http_cycle_get_module_main_conf(cycle, ngx_http_core_module); |
201 | 196 |
202 h = ngx_push_array(&cmcf->phases[NGX_HTTP_ACCESS_PHASE].handlers); | 197 h = ngx_push_array(&cmcf->phases[NGX_HTTP_ACCESS_PHASE].handlers); |
203 if (h == NULL) { | 198 if (h == NULL) { |
204 return NGX_ERROR; | 199 return NGX_ERROR; |