Mercurial > hg > nginx
comparison src/http/ngx_http.c @ 201:267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 30 Nov 2003 20:03:18 +0000 |
parents | c1f3a3c7c5db |
children | 679f60139863 |
comparison
equal
deleted
inserted
replaced
200:abeaebe0a33c | 201:267ea1d98683 |
---|---|
49 struct sockaddr_in *addr_in; | 49 struct sockaddr_in *addr_in; |
50 ngx_array_t in_ports; | 50 ngx_array_t in_ports; |
51 ngx_listening_t *ls; | 51 ngx_listening_t *ls; |
52 ngx_http_module_t *module; | 52 ngx_http_module_t *module; |
53 ngx_conf_t pcf; | 53 ngx_conf_t pcf; |
54 ngx_http_handler_pt *h; | |
54 ngx_http_conf_ctx_t *ctx; | 55 ngx_http_conf_ctx_t *ctx; |
55 ngx_http_in_port_t *in_port, *inport; | 56 ngx_http_in_port_t *in_port, *inport; |
56 ngx_http_in_addr_t *in_addr, *inaddr; | 57 ngx_http_in_addr_t *in_addr, *inaddr; |
57 ngx_http_core_main_conf_t *cmcf; | 58 ngx_http_core_main_conf_t *cmcf; |
58 ngx_http_core_srv_conf_t **cscfp, *cscf; | 59 ngx_http_core_srv_conf_t **cscfp, *cscf; |
217 /* init lists of the handlers */ | 218 /* init lists of the handlers */ |
218 | 219 |
219 ngx_init_array(cmcf->phases[NGX_HTTP_REWRITE_PHASE].handlers, | 220 ngx_init_array(cmcf->phases[NGX_HTTP_REWRITE_PHASE].handlers, |
220 cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), | 221 cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), |
221 NGX_CONF_ERROR); | 222 NGX_CONF_ERROR); |
222 | |
223 cmcf->phases[NGX_HTTP_REWRITE_PHASE].type = NGX_OK; | 223 cmcf->phases[NGX_HTTP_REWRITE_PHASE].type = NGX_OK; |
224 cmcf->phases[NGX_HTTP_REWRITE_PHASE].post_handler = | 224 |
225 ngx_http_find_location_config; | 225 |
226 | 226 ngx_init_array(cmcf->phases[NGX_HTTP_FIND_CONFIG_PHASE].handlers, |
227 | 227 cf->cycle->pool, 1, sizeof(ngx_http_handler_pt), |
228 ngx_init_array(cmcf->phases[NGX_HTTP_TRANSLATE_PHASE].handlers, | 228 NGX_CONF_ERROR); |
229 cmcf->phases[NGX_HTTP_FIND_CONFIG_PHASE].type = NGX_OK; | |
230 | |
231 ngx_test_null(h, ngx_push_array( | |
232 &cmcf->phases[NGX_HTTP_FIND_CONFIG_PHASE].handlers), | |
233 NGX_CONF_ERROR); | |
234 *h = ngx_http_find_location_config; | |
235 | |
236 | |
237 ngx_init_array(cmcf->phases[NGX_HTTP_CONTENT_PHASE].handlers, | |
229 cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), | 238 cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), |
230 NGX_CONF_ERROR); | 239 NGX_CONF_ERROR); |
231 | 240 cmcf->phases[NGX_HTTP_CONTENT_PHASE].type = NGX_OK; |
232 cmcf->phases[NGX_HTTP_TRANSLATE_PHASE].type = NGX_OK; | |
233 | 241 |
234 | 242 |
235 /* create the lists of the ports, the addresses and the server names | 243 /* create the lists of the ports, the addresses and the server names |
236 to allow quickly find the server core module configuration at run-time */ | 244 to allow quickly find the server core module configuration at run-time */ |
237 | 245 |