Mercurial > hg > nginx
comparison src/http/ngx_http_core.c @ 30:c2d9ef3ebb6d
nginx-0.0.1-2002-12-18-00:08:15 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 17 Dec 2002 21:08:15 +0000 |
parents | a117a7fdf042 |
children | d45effe5854c |
comparison
equal
deleted
inserted
replaced
29:6a0b3d6e9c13 | 30:c2d9ef3ebb6d |
---|---|
276 | 276 |
277 return ngx_http_handler(r); | 277 return ngx_http_handler(r); |
278 } | 278 } |
279 | 279 |
280 | 280 |
281 #if 0 | |
282 | |
283 | |
284 {"http", ngx_http_enter_container, 0, | |
285 NGX_GLOBAL_CONF, NGX_CONF_CONTAINER}, | |
286 | |
287 {"server", ngx_http_enter_server_container, 0, | |
288 NGX_HTTP_CONF, NGX_CONF_CONTAINER], | |
289 | |
290 {"location", ngx_http_enter_location_container, 0, | |
291 NGX_HTTP_SRV_CONF, NGX_CONF_CONTAINER|NGX_CONF_TAKE1} | |
292 | |
293 | |
294 int ngx_http_enter_container() | |
295 { | |
296 create_srv_conf(null_srv_conf) | |
297 create_loc_conf(null_loc_conf) | |
298 } | |
299 | |
300 int ngx_http_exit_container() | |
301 { | |
302 nothing ? | |
303 } | |
304 | |
305 | |
306 int ngx_http_enter_server_container() | |
307 { | |
308 create_srv_conf() | |
309 create_loc_conf(NULL) | |
310 } | |
311 | |
312 int ngx_http_exit_server_container() | |
313 { | |
314 merge_srv_conf(srv_conf, null_srv_conf) | |
315 merge_loc_conf(loc_conf, null_loc_conf) | |
316 | |
317 iterate check_loc_conf_is_set and merge_loc_conf() | |
318 } | |
319 | |
320 int ngx_http_enter_location_container() | |
321 { | |
322 create_loc_conf(loc) | |
323 | |
324 push to array | |
325 } | |
326 | |
327 int ngx_http_exit_location_container() | |
328 { | |
329 } | |
330 | |
331 #endif | |
332 | |
333 | |
281 static void *ngx_http_core_create_srv_conf(ngx_pool_t *pool) | 334 static void *ngx_http_core_create_srv_conf(ngx_pool_t *pool) |
282 { | 335 { |
283 ngx_http_core_srv_conf_t *conf; | 336 ngx_http_core_srv_conf_t *conf; |
284 | 337 |
285 ngx_test_null(conf, | 338 ngx_test_null(conf, |