comparison src/http/ngx_http.c @ 144:ef8c87afcfc5

nginx-0.0.1-2003-10-12-20:49:16 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 12 Oct 2003 16:49:16 +0000
parents 5526213be452
children c0552e5ab567
comparison
equal deleted inserted replaced
143:5526213be452 144:ef8c87afcfc5
199 } 199 }
200 } 200 }
201 } 201 }
202 202
203 203
204 /* init list of the handlers */ 204 /* init lists of the handlers */
205 205
206 ngx_init_array(cmcf->phases[NGX_HTTP_REWRITE_PHASE].handlers, 206 ngx_init_array(cmcf->phases[NGX_HTTP_REWRITE_PHASE].handlers,
207 cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), 207 cf->cycle->pool, 10, sizeof(ngx_http_handler_pt),
208 NGX_CONF_ERROR); 208 NGX_CONF_ERROR);
209 209
215 ngx_init_array(cmcf->phases[NGX_HTTP_TRANSLATE_PHASE].handlers, 215 ngx_init_array(cmcf->phases[NGX_HTTP_TRANSLATE_PHASE].handlers,
216 cf->cycle->pool, 10, sizeof(ngx_http_handler_pt), 216 cf->cycle->pool, 10, sizeof(ngx_http_handler_pt),
217 NGX_CONF_ERROR); 217 NGX_CONF_ERROR);
218 218
219 cmcf->phases[NGX_HTTP_TRANSLATE_PHASE].type = NGX_OK; 219 cmcf->phases[NGX_HTTP_TRANSLATE_PHASE].type = NGX_OK;
220
221
222 ngx_init_array(cmcf->index_handlers, cf->cycle->pool,
223 3, sizeof(ngx_http_handler_pt), NGX_CONF_ERROR);
224 220
225 221
226 /* create the lists of the ports, the addresses and the server names 222 /* create the lists of the ports, the addresses and the server names
227 to allow quickly find the server core module configuration at run-time */ 223 to allow quickly find the server core module configuration at run-time */
228 224