diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-10-10 15:10:50 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-10-10 15:10:50 +0000 |
commit | b3e73d869ecef9248468e0ccc2d7d0abdbee495c (patch) | |
tree | 78f032c1884aca4879ef86ce15f10f923111f66e /src/http/ngx_http.c | |
parent | 1342d9cc29de7b6509a44a49cd66d1038d1e6d26 (diff) | |
download | nginx-b3e73d869ecef9248468e0ccc2d7d0abdbee495c.tar.gz nginx-b3e73d869ecef9248468e0ccc2d7d0abdbee495c.zip |
nginx-0.0.1-2003-10-10-19:10:50 import
Diffstat (limited to 'src/http/ngx_http.c')
-rw-r--r-- | src/http/ngx_http.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index 551a1e810..48980bbbb 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -203,8 +203,21 @@ static char *ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) /* init list of the handlers */ - ngx_init_array(cmcf->translate_handlers, cf->cycle->pool, - 10, sizeof(ngx_http_handler_pt), NGX_CONF_ERROR); + ngx_init_array(cmcf->phases[NGX_HTTP_REWRITE_PHASE].handlers, + cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), + NGX_CONF_ERROR); + + cmcf->phases[NGX_HTTP_REWRITE_PHASE].type = NGX_OK; + cmcf->phases[NGX_HTTP_REWRITE_PHASE].post_handler = + ngx_http_find_location_config; + + + ngx_init_array(cmcf->phases[NGX_HTTP_TRANSLATE_PHASE].handlers, + cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), + NGX_CONF_ERROR); + + cmcf->phases[NGX_HTTP_TRANSLATE_PHASE].type = NGX_OK; + ngx_init_array(cmcf->index_handlers, cf->cycle->pool, 3, sizeof(ngx_http_handler_pt), NGX_CONF_ERROR); |