aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-06-24 16:07:04 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-06-24 16:07:04 +0000
commit59f3aa3a9baeab8c8277332e75a83f134d1e026a (patch)
treeb9f4b4b2b84ec0fb29b12a901b5704abbfe5eb06 /src/http/ngx_http.c
parentc83f683553cb76dcc9b7311495383edbacccf06d (diff)
downloadnginx-59f3aa3a9baeab8c8277332e75a83f134d1e026a.tar.gz
nginx-59f3aa3a9baeab8c8277332e75a83f134d1e026a.zip
nginx-0.0.7-2004-06-24-20:07:04 import
Diffstat (limited to 'src/http/ngx_http.c')
-rw-r--r--src/http/ngx_http.c8
1 files changed, 8 insertions, 0 deletions
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);