comparison src/http/ngx_http_core_module.h @ 290:87e73f067470

nginx-0.0.2-2004-03-16-10:10:12 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 16 Mar 2004 07:10:12 +0000
parents 70e1c7d2b83d
children ec3c049681fd
comparison
equal deleted inserted replaced
289:0750faf8d7e3 290:87e73f067470
9 9
10 typedef struct { 10 typedef struct {
11 in_addr_t addr; 11 in_addr_t addr;
12 int port; 12 int port;
13 int family; 13 int family;
14 int flags; /* 'default' */
15 ngx_str_t file_name; 14 ngx_str_t file_name;
16 int line; 15 int line;
16
17 unsigned default_server:1;
17 } ngx_http_listen_t; 18 } ngx_http_listen_t;
18 19
19 20
20 typedef enum { 21 typedef enum {
21 NGX_HTTP_REWRITE_PHASE = 0, 22 NGX_HTTP_REWRITE_PHASE = 0,
25 } ngx_http_phases; 26 } ngx_http_phases;
26 27
27 28
28 typedef struct { 29 typedef struct {
29 ngx_array_t handlers; 30 ngx_array_t handlers;
30 int type; /* NGX_OK, NGX_DECLINED */ 31 ngx_int_t type; /* NGX_OK, NGX_DECLINED */
31 } ngx_http_phase_t; 32 } ngx_http_phase_t;
32 33
33 34
34 typedef struct { 35 typedef struct {
35 ngx_array_t servers; /* array of ngx_http_core_srv_conf_t */ 36 ngx_array_t servers; /* array of ngx_http_core_srv_conf_t */
48 ngx_array_t server_names; /* 'server_name', 49 ngx_array_t server_names; /* 'server_name',
49 array of ngx_http_server_name_t */ 50 array of ngx_http_server_name_t */
50 51
51 ngx_http_conf_ctx_t *ctx; /* server ctx */ 52 ngx_http_conf_ctx_t *ctx; /* server ctx */
52 53
54 size_t connection_pool_size;
55 size_t request_pool_size;
56 size_t client_header_buffer_size;
57
53 ngx_msec_t post_accept_timeout; 58 ngx_msec_t post_accept_timeout;
54 ssize_t connection_pool_size;
55 ssize_t request_pool_size;
56 ngx_msec_t client_header_timeout; 59 ngx_msec_t client_header_timeout;
57 ssize_t client_header_buffer_size; 60
58 int large_client_header; 61 ngx_flag_t large_client_header;
59 } ngx_http_core_srv_conf_t; 62 } ngx_http_core_srv_conf_t;
60 63
61 64
62 /* list of structures to find core_srv_conf quickly at run time */ 65 /* list of structures to find core_srv_conf quickly at run time */
63 66
71 typedef struct { 74 typedef struct {
72 in_addr_t addr; 75 in_addr_t addr;
73 ngx_array_t names; /* array of ngx_http_server_name_t */ 76 ngx_array_t names; /* array of ngx_http_server_name_t */
74 ngx_http_core_srv_conf_t *core_srv_conf; /* default server conf 77 ngx_http_core_srv_conf_t *core_srv_conf; /* default server conf
75 for this address:port */ 78 for this address:port */
76 int flags; 79
80 unsigned default_server:1;
77 } ngx_http_in_addr_t; 81 } ngx_http_in_addr_t;
78
79 /* ngx_http_in_addr_t's flags */
80 #define NGX_HTTP_DEFAULT_SERVER 1
81 82
82 83
83 typedef struct { 84 typedef struct {
84 ngx_str_t name; 85 ngx_str_t name;
85 ngx_http_core_srv_conf_t *core_srv_conf; /* virtual name server conf */ 86 ngx_http_core_srv_conf_t *core_srv_conf; /* virtual name server conf */
113 ngx_str_t name; /* location name */ 114 ngx_str_t name; /* location name */
114 void **loc_conf ; /* pointer to the modules' loc_conf */ 115 void **loc_conf ; /* pointer to the modules' loc_conf */
115 116
116 int (*handler) (ngx_http_request_t *r); 117 int (*handler) (ngx_http_request_t *r);
117 118
118 ngx_str_t doc_root; /* root */ 119 ngx_str_t root; /* root, alias */
119 120
120 ngx_array_t *types; 121 ngx_array_t *types;
121 ngx_str_t default_type; 122 ngx_str_t default_type;
122 123
124 size_t send_lowat; /* send_lowat */
125 size_t discarded_buffer_size; /* discarded_buffer_size */
126
123 ngx_msec_t client_body_timeout; /* client_body_timeout */ 127 ngx_msec_t client_body_timeout; /* client_body_timeout */
124 int sendfile; /* sendfile */
125 int tcp_nopush; /* tcp_nopush */
126 ngx_msec_t send_timeout; /* send_timeout */ 128 ngx_msec_t send_timeout; /* send_timeout */
127 ssize_t send_lowat; /* send_lowat */
128 ssize_t discarded_buffer_size; /* discarded_buffer_size */
129 ngx_msec_t keepalive_timeout; /* keepalive_timeout */ 129 ngx_msec_t keepalive_timeout; /* keepalive_timeout */
130 ngx_msec_t lingering_time; /* lingering_time */ 130 ngx_msec_t lingering_time; /* lingering_time */
131 ngx_msec_t lingering_timeout; /* lingering_timeout */ 131 ngx_msec_t lingering_timeout; /* lingering_timeout */
132 132
133 int msie_padding; /* msie_padding */ 133 ngx_flag_t sendfile; /* sendfile */
134 ngx_flag_t tcp_nopush; /* tcp_nopush */
135 ngx_flag_t msie_padding; /* msie_padding */
136
134 ngx_array_t *error_pages; /* error_page */ 137 ngx_array_t *error_pages; /* error_page */
135 138
136 ngx_http_cache_hash_t *open_files; 139 ngx_http_cache_hash_t *open_files;
137 140
138 #if (HAVE_PCRE) 141 #if (HAVE_PCRE)
139 ngx_regex_t *regex; 142 ngx_regex_t *regex;
140 #endif 143 #endif
141 144
142 unsigned exact_match:1; 145 unsigned exact_match:1;
143 unsigned auto_redirect:1; 146 unsigned auto_redirect:1;
147 unsigned alias:1;
144 148
145 ngx_log_t *err_log; 149 ngx_log_t *err_log;
146 } ngx_http_core_loc_conf_t; 150 } ngx_http_core_loc_conf_t;
147 151
148 152