From 59f3aa3a9baeab8c8277332e75a83f134d1e026a Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 24 Jun 2004 16:07:04 +0000 Subject: nginx-0.0.7-2004-06-24-20:07:04 import --- src/http/ngx_http.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/http/ngx_http.c') diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index 9e040d6f6..6fca25400 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -230,6 +230,8 @@ static char *ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) cmcf->phases[NGX_HTTP_REWRITE_PHASE].type = NGX_OK; + /* the special find config phase for single handler */ + ngx_init_array(cmcf->phases[NGX_HTTP_FIND_CONFIG_PHASE].handlers, cf->cycle->pool, 1, sizeof(ngx_http_handler_pt), NGX_CONF_ERROR); @@ -241,6 +243,12 @@ static char *ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) *h = ngx_http_find_location_config; + ngx_init_array(cmcf->phases[NGX_HTTP_ACCESS_PHASE].handlers, + cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), + NGX_CONF_ERROR); + cmcf->phases[NGX_HTTP_ACCESS_PHASE].type = NGX_DECLINED; + + ngx_init_array(cmcf->phases[NGX_HTTP_CONTENT_PHASE].handlers, cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), NGX_CONF_ERROR); -- cgit