Mercurial > hg > nginx
comparison src/http/ngx_http.c @ 10:4f3879d9b6f6
nginx-0.0.1-2002-09-11-19:18:33 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 11 Sep 2002 15:18:33 +0000 |
parents | 6f58641241bb |
children | 2aba961a1d34 |
comparison
equal
deleted
inserted
replaced
9:6f58641241bb | 10:4f3879d9b6f6 |
---|---|
2 #include <ngx_config.h> | 2 #include <ngx_config.h> |
3 #include <ngx_string.h> | 3 #include <ngx_string.h> |
4 #include <ngx_socket.h> | 4 #include <ngx_socket.h> |
5 #include <ngx_listen.h> | 5 #include <ngx_listen.h> |
6 #include <ngx_http.h> | 6 #include <ngx_http.h> |
7 #include <ngx_http_config.h> | |
7 | 8 |
8 extern ngx_array_t *ngx_listening_sockets; | 9 extern ngx_array_t *ngx_listening_sockets; |
9 | 10 |
10 /* STUB */ | 11 /* STUB */ |
11 | 12 |
26 #if (WIN32) | 27 #if (WIN32) |
27 ngx_http_server.doc_root = "html"; | 28 ngx_http_server.doc_root = "html"; |
28 #else | 29 #else |
29 ngx_http_server.doc_root = "/home/is/work/xml/site-1.0.0/html"; | 30 ngx_http_server.doc_root = "/home/is/work/xml/site-1.0.0/html"; |
30 #endif | 31 #endif |
31 ngx_http_server.doc_root = "html"; | |
32 ngx_http_server.doc_root_len = strlen(ngx_http_server.doc_root) + 1; | 32 ngx_http_server.doc_root_len = strlen(ngx_http_server.doc_root) + 1; |
33 | 33 |
34 | 34 |
35 ngx_http_output_filter_init(); | 35 ngx_http_config_modules(pool, ngx_http_modules); |
36 ngx_http_write_filter_init(); | |
37 | 36 |
37 /* STUB */ | |
38 ngx_http_output_filter_set_stub(pool, ngx_http_modules); | |
39 ngx_http_write_filter_set_stub(pool, ngx_http_modules); | |
40 ngx_http_index_set_stub(pool, ngx_http_modules); | |
41 | |
42 ngx_http_init_modules(pool, ngx_http_modules); | |
43 ngx_http_init_filters(pool, ngx_http_modules); | |
38 | 44 |
39 ls = ngx_push_array(ngx_listening_sockets); | 45 ls = ngx_push_array(ngx_listening_sockets); |
40 ngx_memzero(ls, sizeof(ngx_listen_t)); | 46 ngx_memzero(ls, sizeof(ngx_listen_t)); |
41 | 47 |
42 addr.sin_family = AF_INET; | 48 addr.sin_family = AF_INET; |