comparison src/http/modules/ngx_http_rewrite_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 8733703a37f3
children 470270fa84d2
comparison
equal deleted inserted replaced
395:f8f0f1834266 396:6f3b20c1ac50
367 367
368 368
369 static ngx_int_t ngx_http_rewrite_init(ngx_cycle_t *cycle) 369 static ngx_int_t ngx_http_rewrite_init(ngx_cycle_t *cycle)
370 { 370 {
371 ngx_http_handler_pt *h; 371 ngx_http_handler_pt *h;
372 ngx_http_conf_ctx_t *ctx;
373 ngx_http_core_main_conf_t *cmcf; 372 ngx_http_core_main_conf_t *cmcf;
374 373
375 ctx = (ngx_http_conf_ctx_t *) cycle->conf_ctx[ngx_http_module.index]; 374 cmcf = ngx_http_cycle_get_module_main_conf(cycle, ngx_http_core_module);
376 cmcf = ctx->main_conf[ngx_http_core_module.ctx_index];
377 375
378 h = ngx_push_array(&cmcf->phases[NGX_HTTP_REWRITE_PHASE].handlers); 376 h = ngx_push_array(&cmcf->phases[NGX_HTTP_REWRITE_PHASE].handlers);
379 if (h == NULL) { 377 if (h == NULL) {
380 return NGX_ERROR; 378 return NGX_ERROR;
381 } 379 }