Mercurial > hg > nginx
comparison src/http/ngx_http.c @ 368:15c84a40e87d
nginx-0.0.7-2004-06-24-20:07:04 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 24 Jun 2004 16:07:04 +0000 |
parents | 2e3cbc1bbe3c |
children | 6f3b20c1ac50 |
comparison
equal
deleted
inserted
replaced
367:ceec87d1c2b3 | 368:15c84a40e87d |
---|---|
228 cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), | 228 cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), |
229 NGX_CONF_ERROR); | 229 NGX_CONF_ERROR); |
230 cmcf->phases[NGX_HTTP_REWRITE_PHASE].type = NGX_OK; | 230 cmcf->phases[NGX_HTTP_REWRITE_PHASE].type = NGX_OK; |
231 | 231 |
232 | 232 |
233 /* the special find config phase for single handler */ | |
234 | |
233 ngx_init_array(cmcf->phases[NGX_HTTP_FIND_CONFIG_PHASE].handlers, | 235 ngx_init_array(cmcf->phases[NGX_HTTP_FIND_CONFIG_PHASE].handlers, |
234 cf->cycle->pool, 1, sizeof(ngx_http_handler_pt), | 236 cf->cycle->pool, 1, sizeof(ngx_http_handler_pt), |
235 NGX_CONF_ERROR); | 237 NGX_CONF_ERROR); |
236 cmcf->phases[NGX_HTTP_FIND_CONFIG_PHASE].type = NGX_OK; | 238 cmcf->phases[NGX_HTTP_FIND_CONFIG_PHASE].type = NGX_OK; |
237 | 239 |
238 ngx_test_null(h, ngx_push_array( | 240 ngx_test_null(h, ngx_push_array( |
239 &cmcf->phases[NGX_HTTP_FIND_CONFIG_PHASE].handlers), | 241 &cmcf->phases[NGX_HTTP_FIND_CONFIG_PHASE].handlers), |
240 NGX_CONF_ERROR); | 242 NGX_CONF_ERROR); |
241 *h = ngx_http_find_location_config; | 243 *h = ngx_http_find_location_config; |
244 | |
245 | |
246 ngx_init_array(cmcf->phases[NGX_HTTP_ACCESS_PHASE].handlers, | |
247 cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), | |
248 NGX_CONF_ERROR); | |
249 cmcf->phases[NGX_HTTP_ACCESS_PHASE].type = NGX_DECLINED; | |
242 | 250 |
243 | 251 |
244 ngx_init_array(cmcf->phases[NGX_HTTP_CONTENT_PHASE].handlers, | 252 ngx_init_array(cmcf->phases[NGX_HTTP_CONTENT_PHASE].handlers, |
245 cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), | 253 cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), |
246 NGX_CONF_ERROR); | 254 NGX_CONF_ERROR); |