comparison src/http/modules/ngx_http_access_handler.c @ 393:5659d773cfa8

nginx-0.0.7-2004-07-15-20:35:51 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 15 Jul 2004 16:35:51 +0000
parents 15c84a40e87d
children 6f3b20c1ac50
comparison
equal deleted inserted replaced
392:d1222d46b3f9 393:5659d773cfa8
191 { 191 {
192 ngx_http_handler_pt *h; 192 ngx_http_handler_pt *h;
193 ngx_http_conf_ctx_t *ctx; 193 ngx_http_conf_ctx_t *ctx;
194 ngx_http_core_main_conf_t *cmcf; 194 ngx_http_core_main_conf_t *cmcf;
195 195
196 #if 0
196 ctx = (ngx_http_conf_ctx_t *) cycle->conf_ctx[ngx_http_module.index]; 197 ctx = (ngx_http_conf_ctx_t *) cycle->conf_ctx[ngx_http_module.index];
197 cmcf = ctx->main_conf[ngx_http_core_module.ctx_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);
198 201
199 h = ngx_push_array(&cmcf->phases[NGX_HTTP_ACCESS_PHASE].handlers); 202 h = ngx_push_array(&cmcf->phases[NGX_HTTP_ACCESS_PHASE].handlers);
200 if (h == NULL) { 203 if (h == NULL) {
201 return NGX_ERROR; 204 return NGX_ERROR;
202 } 205 }