Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.h @ 55:cad6c2f43283
nginx-0.0.1-2003-01-29-10:25:51 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 29 Jan 2003 07:25:51 +0000 |
parents | 27b628ef907e |
children | 6b13b1cadabe |
comparison
equal
deleted
inserted
replaced
54:27b628ef907e | 55:cad6c2f43283 |
---|---|
6 #include <ngx_array.h> | 6 #include <ngx_array.h> |
7 #include <ngx_http.h> | 7 #include <ngx_http.h> |
8 | 8 |
9 | 9 |
10 typedef struct { | 10 typedef struct { |
11 int addr; | 11 int addr; |
12 int port; | 12 int port; |
13 int family; | 13 int family; |
14 int flags; /* 'default' */ | 14 int flags; /* 'default' */ |
15 ngx_conf_file_t *conf_file; | 15 ngx_str_t file_name; |
16 int line; | 16 int line; |
17 } ngx_http_listen_t; | 17 } ngx_http_listen_t; |
18 | 18 |
19 | 19 |
20 typedef struct { | 20 typedef struct { |
21 ngx_array_t locations; /* array of ngx_http_core_loc_conf_t */ | 21 ngx_array_t locations; /* array of ngx_http_core_loc_conf_t */ |
22 | 22 |
23 ngx_array_t listen; /* 'listen', array of ngx_http_listen_t */ | 23 ngx_array_t listen; /* 'listen', array of ngx_http_listen_t */ |
24 ngx_array_t server_names; /* 'server_name', | 24 ngx_array_t server_names; /* 'server_name', |
25 array of ngx_http_server_name_t */ | 25 array of ngx_http_server_name_t */ |
26 ngx_http_conf_ctx_t *ctx; | 26 ngx_http_conf_ctx_t *ctx; /* server ctx */ |
27 } ngx_http_core_srv_conf_t; | 27 } ngx_http_core_srv_conf_t; |
28 | 28 |
29 | 29 |
30 typedef struct { | 30 /* list of structures to find core_srv_conf quickly at run time */ |
31 ngx_str_t name; | |
32 ngx_http_core_srv_conf_t *core_srv_conf; | |
33 } ngx_http_server_name_t; | |
34 | |
35 | 31 |
36 typedef struct { | 32 typedef struct { |
37 int port; | 33 int port; |
38 ngx_array_t addr; | 34 ngx_array_t addr; /* array of ngx_http_in_addr_t */ |
39 } ngx_http_in_port_t; | 35 } ngx_http_in_port_t; |
40 | 36 |
41 typedef struct { | 37 typedef struct { |
42 u_int32_t addr; | 38 u_int32_t addr; |
43 ngx_array_t names; | 39 ngx_array_t names; /* array of ngx_http_server_name_t */ |
44 int flags; | 40 ngx_http_core_srv_conf_t *core_srv_conf; /* default server conf |
45 ngx_http_core_srv_conf_t *core_srv_conf; | 41 for this address:port */ |
42 int flags; | |
46 } ngx_http_in_addr_t; | 43 } ngx_http_in_addr_t; |
47 | 44 |
48 #define NGX_HTTP_DEFAULT_SERVER 1 | 45 #define NGX_HTTP_DEFAULT_SERVER 1 |
46 | |
47 typedef struct { | |
48 ngx_str_t name; | |
49 ngx_http_core_srv_conf_t *core_srv_conf; /* virtual name server conf */ | |
50 } ngx_http_server_name_t; | |
51 | |
49 | 52 |
50 | 53 |
51 | 54 |
52 typedef struct { | 55 typedef struct { |
53 ngx_str_t name; /* location name */ | 56 ngx_str_t name; /* location name */ |