Mercurial > hg > nginx-quic
annotate src/http/ngx_http_core_module.h @ 3768:098cd8119861
nginx uses SSL mode for a listen socket with any option set,
the bug has been introduced in r3765
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 28 Sep 2010 06:50:52 +0000 |
parents | 72cc5b789021 |
children | a08e8b3832ae |
rev | line source |
---|---|
441
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
437
diff
changeset
|
1 |
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
437
diff
changeset
|
2 /* |
444
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
441
diff
changeset
|
3 * Copyright (C) Igor Sysoev |
441
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
437
diff
changeset
|
4 */ |
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
437
diff
changeset
|
5 |
da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Igor Sysoev <igor@sysoev.ru>
parents:
437
diff
changeset
|
6 |
13
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
7 #ifndef _NGX_HTTP_CORE_H_INCLUDED_ |
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
8 #define _NGX_HTTP_CORE_H_INCLUDED_ |
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
9 |
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
10 |
2233 | 11 #include <ngx_config.h> |
12 #include <ngx_core.h> | |
13
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
13 #include <ngx_http.h> |
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
14 |
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
15 |
1790
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
16 #define NGX_HTTP_GZIP_PROXIED_OFF 0x0002 |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
17 #define NGX_HTTP_GZIP_PROXIED_EXPIRED 0x0004 |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
18 #define NGX_HTTP_GZIP_PROXIED_NO_CACHE 0x0008 |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
19 #define NGX_HTTP_GZIP_PROXIED_NO_STORE 0x0010 |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
20 #define NGX_HTTP_GZIP_PROXIED_PRIVATE 0x0020 |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
21 #define NGX_HTTP_GZIP_PROXIED_NO_LM 0x0040 |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
22 #define NGX_HTTP_GZIP_PROXIED_NO_ETAG 0x0080 |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
23 #define NGX_HTTP_GZIP_PROXIED_AUTH 0x0100 |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
24 #define NGX_HTTP_GZIP_PROXIED_ANY 0x0200 |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
25 |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
26 |
3065 | 27 #define NGX_HTTP_AIO_OFF 0 |
28 #define NGX_HTTP_AIO_ON 1 | |
29 #define NGX_HTTP_AIO_SENDFILE 2 | |
30 | |
31 | |
1806 | 32 #define NGX_HTTP_SATISFY_ALL 0 |
33 #define NGX_HTTP_SATISFY_ANY 1 | |
34 | |
35 | |
2496 | 36 #define NGX_HTTP_IMS_OFF 0 |
37 #define NGX_HTTP_IMS_EXACT 1 | |
38 #define NGX_HTTP_IMS_BEFORE 2 | |
39 | |
40 | |
2027 | 41 typedef struct ngx_http_location_tree_node_s ngx_http_location_tree_node_t; |
42 typedef struct ngx_http_core_loc_conf_s ngx_http_core_loc_conf_t; | |
43 | |
44 | |
13
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
45 typedef struct { |
3395
4e15548b29d4
fix building by gcc 4.4 with -O2/3/s:
Igor Sysoev <igor@sysoev.ru>
parents:
3325
diff
changeset
|
46 union { |
4e15548b29d4
fix building by gcc 4.4 with -O2/3/s:
Igor Sysoev <igor@sysoev.ru>
parents:
3325
diff
changeset
|
47 struct sockaddr sockaddr; |
4e15548b29d4
fix building by gcc 4.4 with -O2/3/s:
Igor Sysoev <igor@sysoev.ru>
parents:
3325
diff
changeset
|
48 struct sockaddr_in sockaddr_in; |
4e15548b29d4
fix building by gcc 4.4 with -O2/3/s:
Igor Sysoev <igor@sysoev.ru>
parents:
3325
diff
changeset
|
49 #if (NGX_HAVE_INET6) |
4e15548b29d4
fix building by gcc 4.4 with -O2/3/s:
Igor Sysoev <igor@sysoev.ru>
parents:
3325
diff
changeset
|
50 struct sockaddr_in6 sockaddr_in6; |
4e15548b29d4
fix building by gcc 4.4 with -O2/3/s:
Igor Sysoev <igor@sysoev.ru>
parents:
3325
diff
changeset
|
51 #endif |
4e15548b29d4
fix building by gcc 4.4 with -O2/3/s:
Igor Sysoev <igor@sysoev.ru>
parents:
3325
diff
changeset
|
52 #if (NGX_HAVE_UNIX_DOMAIN) |
4e15548b29d4
fix building by gcc 4.4 with -O2/3/s:
Igor Sysoev <igor@sysoev.ru>
parents:
3325
diff
changeset
|
53 struct sockaddr_un sockaddr_un; |
4e15548b29d4
fix building by gcc 4.4 with -O2/3/s:
Igor Sysoev <igor@sysoev.ru>
parents:
3325
diff
changeset
|
54 #endif |
4e15548b29d4
fix building by gcc 4.4 with -O2/3/s:
Igor Sysoev <igor@sysoev.ru>
parents:
3325
diff
changeset
|
55 u_char sockaddr_data[NGX_SOCKADDRLEN]; |
4e15548b29d4
fix building by gcc 4.4 with -O2/3/s:
Igor Sysoev <igor@sysoev.ru>
parents:
3325
diff
changeset
|
56 } u; |
4e15548b29d4
fix building by gcc 4.4 with -O2/3/s:
Igor Sysoev <igor@sysoev.ru>
parents:
3325
diff
changeset
|
57 |
3220
cdcd9e29c589
*) move sockaddr to the listen options
Igor Sysoev <igor@sysoev.ru>
parents:
3219
diff
changeset
|
58 socklen_t socklen; |
cdcd9e29c589
*) move sockaddr to the listen options
Igor Sysoev <igor@sysoev.ru>
parents:
3219
diff
changeset
|
59 |
3224
8e76e636ae3b
allow to set listen options in any server
Igor Sysoev <igor@sysoev.ru>
parents:
3221
diff
changeset
|
60 unsigned set:1; |
523 | 61 unsigned default_server:1; |
62 unsigned bind:1; | |
2512
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
63 unsigned wildcard:1; |
2224 | 64 #if (NGX_HTTP_SSL) |
65 unsigned ssl:1; | |
66 #endif | |
2562 | 67 #if (NGX_HAVE_INET6 && defined IPV6_V6ONLY) |
68 unsigned ipv6only:2; | |
69 #endif | |
523 | 70 |
71 int backlog; | |
563 | 72 int rcvbuf; |
73 int sndbuf; | |
3676 | 74 #if (NGX_HAVE_SETFIB) |
75 int setfib; | |
76 #endif | |
523 | 77 |
78 #if (NGX_HAVE_DEFERRED_ACCEPT && defined SO_ACCEPTFILTER) | |
79 char *accept_filter; | |
80 #endif | |
81 #if (NGX_HAVE_DEFERRED_ACCEPT && defined TCP_DEFER_ACCEPT) | |
82 ngx_uint_t deferred_accept; | |
83 #endif | |
84 | |
2512
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
85 u_char addr[NGX_SOCKADDR_STRLEN + 1]; |
3217 | 86 } ngx_http_listen_opt_t; |
523 | 87 |
88 | |
201
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
89 typedef enum { |
573 | 90 NGX_HTTP_POST_READ_PHASE = 0, |
368
15c84a40e87d
nginx-0.0.7-2004-06-24-20:07:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
362
diff
changeset
|
91 |
573 | 92 NGX_HTTP_SERVER_REWRITE_PHASE, |
681 | 93 |
573 | 94 NGX_HTTP_FIND_CONFIG_PHASE, |
489 | 95 NGX_HTTP_REWRITE_PHASE, |
681 | 96 NGX_HTTP_POST_REWRITE_PHASE, |
368
15c84a40e87d
nginx-0.0.7-2004-06-24-20:07:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
362
diff
changeset
|
97 |
581 | 98 NGX_HTTP_PREACCESS_PHASE, |
99 | |
368
15c84a40e87d
nginx-0.0.7-2004-06-24-20:07:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
362
diff
changeset
|
100 NGX_HTTP_ACCESS_PHASE, |
681 | 101 NGX_HTTP_POST_ACCESS_PHASE, |
102 | |
2407 | 103 NGX_HTTP_TRY_FILES_PHASE, |
201
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
104 NGX_HTTP_CONTENT_PHASE, |
368
15c84a40e87d
nginx-0.0.7-2004-06-24-20:07:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
362
diff
changeset
|
105 |
581 | 106 NGX_HTTP_LOG_PHASE |
201
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
107 } ngx_http_phases; |
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
108 |
681 | 109 typedef struct ngx_http_phase_handler_s ngx_http_phase_handler_t; |
110 | |
111 typedef ngx_int_t (*ngx_http_phase_handler_pt)(ngx_http_request_t *r, | |
112 ngx_http_phase_handler_t *ph); | |
113 | |
114 struct ngx_http_phase_handler_s { | |
115 ngx_http_phase_handler_pt checker; | |
116 ngx_http_handler_pt handler; | |
117 ngx_uint_t next; | |
118 }; | |
119 | |
120 | |
121 typedef struct { | |
122 ngx_http_phase_handler_t *handlers; | |
123 ngx_uint_t server_rewrite_index; | |
1353 | 124 ngx_uint_t location_rewrite_index; |
681 | 125 } ngx_http_phase_engine_t; |
126 | |
201
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
127 |
19
d7908993fdeb
nginx-0.0.1-2002-12-02-19:09:40 import; resume after 2 months stall
Igor Sysoev <igor@sysoev.ru>
parents:
13
diff
changeset
|
128 typedef struct { |
477 | 129 ngx_array_t handlers; |
143
5526213be452
nginx-0.0.1-2003-10-10-19:10:50 import
Igor Sysoev <igor@sysoev.ru>
parents:
114
diff
changeset
|
130 } ngx_http_phase_t; |
5526213be452
nginx-0.0.1-2003-10-10-19:10:50 import
Igor Sysoev <igor@sysoev.ru>
parents:
114
diff
changeset
|
131 |
5526213be452
nginx-0.0.1-2003-10-10-19:10:50 import
Igor Sysoev <igor@sysoev.ru>
parents:
114
diff
changeset
|
132 |
5526213be452
nginx-0.0.1-2003-10-10-19:10:50 import
Igor Sysoev <igor@sysoev.ru>
parents:
114
diff
changeset
|
133 typedef struct { |
485 | 134 ngx_array_t servers; /* ngx_http_core_srv_conf_t */ |
477 | 135 |
681 | 136 ngx_http_phase_engine_t phase_engine; |
143
5526213be452
nginx-0.0.1-2003-10-10-19:10:50 import
Igor Sysoev <igor@sysoev.ru>
parents:
114
diff
changeset
|
137 |
649 | 138 ngx_hash_t headers_in_hash; |
611 | 139 |
140 ngx_hash_t variables_hash; | |
141 | |
142 ngx_array_t variables; /* ngx_http_variable_t */ | |
3325 | 143 ngx_uint_t ncaptures; |
507 | 144 |
593 | 145 ngx_uint_t server_names_hash_max_size; |
146 ngx_uint_t server_names_hash_bucket_size; | |
485 | 147 |
611 | 148 ngx_uint_t variables_hash_max_size; |
149 ngx_uint_t variables_hash_bucket_size; | |
150 | |
151 ngx_hash_keys_arrays_t *variables_keys; | |
681 | 152 |
3217 | 153 ngx_array_t *ports; |
154 | |
2407 | 155 ngx_uint_t try_files; /* unsigned try_files:1 */ |
156 | |
681 | 157 ngx_http_phase_t phases[NGX_HTTP_LOG_PHASE + 1]; |
90
37530da31268
nginx-0.0.1-2003-05-16-19:27:48 import
Igor Sysoev <igor@sysoev.ru>
parents:
89
diff
changeset
|
158 } ngx_http_core_main_conf_t; |
37530da31268
nginx-0.0.1-2003-05-16-19:27:48 import
Igor Sysoev <igor@sysoev.ru>
parents:
89
diff
changeset
|
159 |
37530da31268
nginx-0.0.1-2003-05-16-19:27:48 import
Igor Sysoev <igor@sysoev.ru>
parents:
89
diff
changeset
|
160 |
37530da31268
nginx-0.0.1-2003-05-16-19:27:48 import
Igor Sysoev <igor@sysoev.ru>
parents:
89
diff
changeset
|
161 typedef struct { |
485 | 162 /* array of the ngx_http_server_name_t, "server_name" directive */ |
2027 | 163 ngx_array_t server_names; |
393
5659d773cfa8
nginx-0.0.7-2004-07-15-20:35:51 import
Igor Sysoev <igor@sysoev.ru>
parents:
391
diff
changeset
|
164 |
5659d773cfa8
nginx-0.0.7-2004-07-15-20:35:51 import
Igor Sysoev <igor@sysoev.ru>
parents:
391
diff
changeset
|
165 /* server ctx */ |
2027 | 166 ngx_http_conf_ctx_t *ctx; |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
167 |
2027 | 168 ngx_str_t server_name; |
593 | 169 |
2027 | 170 size_t connection_pool_size; |
171 size_t request_pool_size; | |
172 size_t client_header_buffer_size; | |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
173 |
2027 | 174 ngx_bufs_t large_client_header_buffers; |
435
5cdc4838d4e8
nginx-0.0.11-2004-09-22-20:18:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
429
diff
changeset
|
175 |
2027 | 176 ngx_msec_t client_header_timeout; |
335
d4241d7787fe
nginx-0.0.3-2004-05-14-20:51:47 import
Igor Sysoev <igor@sysoev.ru>
parents:
326
diff
changeset
|
177 |
2027 | 178 ngx_flag_t ignore_invalid_headers; |
179 ngx_flag_t merge_slashes; | |
2256 | 180 ngx_flag_t underscores_in_headers; |
2027 | 181 |
3219 | 182 unsigned listen:1; |
183 #if (NGX_PCRE) | |
184 unsigned captures:1; | |
185 #endif | |
3217 | 186 |
2027 | 187 ngx_http_core_loc_conf_t **named_locations; |
19
d7908993fdeb
nginx-0.0.1-2002-12-02-19:09:40 import; resume after 2 months stall
Igor Sysoev <igor@sysoev.ru>
parents:
13
diff
changeset
|
188 } ngx_http_core_srv_conf_t; |
d7908993fdeb
nginx-0.0.1-2002-12-02-19:09:40 import; resume after 2 months stall
Igor Sysoev <igor@sysoev.ru>
parents:
13
diff
changeset
|
189 |
41
59e7c7f30d49
nginx-0.0.1-2002-12-26-19:26:23 import
Igor Sysoev <igor@sysoev.ru>
parents:
19
diff
changeset
|
190 |
55
cad6c2f43283
nginx-0.0.1-2003-01-29-10:25:51 import
Igor Sysoev <igor@sysoev.ru>
parents:
54
diff
changeset
|
191 /* list of structures to find core_srv_conf quickly at run time */ |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
192 |
593 | 193 |
194 typedef struct { | |
195 /* the default server configuration for this address:port */ | |
3221
c8de5a8b6d17
rename core_srv_conf fields to more understandable default_server and server
Igor Sysoev <igor@sysoev.ru>
parents:
3220
diff
changeset
|
196 ngx_http_core_srv_conf_t *default_server; |
1387 | 197 |
2689
6caf687a831f
backout r2535: virtual names is a property of address:port pair,
Igor Sysoev <igor@sysoev.ru>
parents:
2589
diff
changeset
|
198 ngx_http_virtual_names_t *virtual_names; |
6caf687a831f
backout r2535: virtual names is a property of address:port pair,
Igor Sysoev <igor@sysoev.ru>
parents:
2589
diff
changeset
|
199 |
2224 | 200 #if (NGX_HTTP_SSL) |
201 ngx_uint_t ssl; /* unsigned ssl:1; */ | |
202 #endif | |
2512
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
203 } ngx_http_addr_conf_t; |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
204 |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
205 |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
206 typedef struct { |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
207 in_addr_t addr; |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
208 ngx_http_addr_conf_t conf; |
593 | 209 } ngx_http_in_addr_t; |
210 | |
211 | |
2512
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
212 #if (NGX_HAVE_INET6) |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
213 |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
214 typedef struct { |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
215 struct in6_addr addr6; |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
216 ngx_http_addr_conf_t conf; |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
217 } ngx_http_in6_addr_t; |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
218 |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
219 #endif |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
220 |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
221 |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
222 typedef struct { |
2512
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
223 /* ngx_http_in_addr_t or ngx_http_in6_addr_t */ |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
224 void *addrs; |
593 | 225 ngx_uint_t naddrs; |
2512
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
226 } ngx_http_port_t; |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
227 |
89
29bf798b583f
nginx-0.0.1-2003-05-15-19:42:53 import
Igor Sysoev <igor@sysoev.ru>
parents:
88
diff
changeset
|
228 |
593 | 229 typedef struct { |
2512
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
230 ngx_int_t family; |
593 | 231 in_port_t port; |
2512
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
232 ngx_array_t addrs; /* array of ngx_http_conf_addr_t */ |
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
233 } ngx_http_conf_port_t; |
593 | 234 |
235 | |
236 typedef struct { | |
3220
cdcd9e29c589
*) move sockaddr to the listen options
Igor Sysoev <igor@sysoev.ru>
parents:
3219
diff
changeset
|
237 ngx_http_listen_opt_t opt; |
477 | 238 |
593 | 239 ngx_hash_t hash; |
1253
8ef04207c84f
the "www.example.*" wildcard hash support
Igor Sysoev <igor@sysoev.ru>
parents:
1236
diff
changeset
|
240 ngx_hash_wildcard_t *wc_head; |
8ef04207c84f
the "www.example.*" wildcard hash support
Igor Sysoev <igor@sysoev.ru>
parents:
1236
diff
changeset
|
241 ngx_hash_wildcard_t *wc_tail; |
593 | 242 |
1387 | 243 #if (NGX_PCRE) |
244 ngx_uint_t nregex; | |
245 ngx_http_server_name_t *regex; | |
246 #endif | |
247 | |
477 | 248 /* the default server configuration for this address:port */ |
3221
c8de5a8b6d17
rename core_srv_conf fields to more understandable default_server and server
Igor Sysoev <igor@sysoev.ru>
parents:
3220
diff
changeset
|
249 ngx_http_core_srv_conf_t *default_server; |
3219 | 250 ngx_array_t servers; /* array of ngx_http_core_srv_conf_t */ |
2512
2e91aecb9e57
a prelimiary IPv6 support, HTTP listen
Igor Sysoev <igor@sysoev.ru>
parents:
2496
diff
changeset
|
251 } ngx_http_conf_addr_t; |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
252 |
89
29bf798b583f
nginx-0.0.1-2003-05-15-19:42:53 import
Igor Sysoev <igor@sysoev.ru>
parents:
88
diff
changeset
|
253 |
1387 | 254 struct ngx_http_server_name_s { |
255 #if (NGX_PCRE) | |
3325 | 256 ngx_http_regex_t *regex; |
1387 | 257 #endif |
3221
c8de5a8b6d17
rename core_srv_conf fields to more understandable default_server and server
Igor Sysoev <igor@sysoev.ru>
parents:
3220
diff
changeset
|
258 ngx_http_core_srv_conf_t *server; /* virtual name server conf */ |
55
cad6c2f43283
nginx-0.0.1-2003-01-29-10:25:51 import
Igor Sysoev <igor@sysoev.ru>
parents:
54
diff
changeset
|
259 ngx_str_t name; |
1387 | 260 }; |
55
cad6c2f43283
nginx-0.0.1-2003-01-29-10:25:51 import
Igor Sysoev <igor@sysoev.ru>
parents:
54
diff
changeset
|
261 |
cad6c2f43283
nginx-0.0.1-2003-01-29-10:25:51 import
Igor Sysoev <igor@sysoev.ru>
parents:
54
diff
changeset
|
262 |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
263 typedef struct { |
673 | 264 ngx_int_t status; |
265 ngx_int_t overwrite; | |
2589
859f6675a553
use complex value in error_page
Igor Sysoev <igor@sysoev.ru>
parents:
2562
diff
changeset
|
266 ngx_http_complex_value_t value; |
1982
dd388c80f5a2
args support in static error_page
Igor Sysoev <igor@sysoev.ru>
parents:
1806
diff
changeset
|
267 ngx_str_t args; |
176
c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Igor Sysoev <igor@sysoev.ru>
parents:
162
diff
changeset
|
268 } ngx_http_err_page_t; |
c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Igor Sysoev <igor@sysoev.ru>
parents:
162
diff
changeset
|
269 |
c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Igor Sysoev <igor@sysoev.ru>
parents:
162
diff
changeset
|
270 |
2407 | 271 typedef struct { |
272 ngx_array_t *lengths; | |
273 ngx_array_t *values; | |
274 ngx_str_t name; | |
2695 | 275 |
276 unsigned code:10; | |
277 unsigned test_dir:1; | |
2407 | 278 } ngx_http_try_file_t; |
279 | |
280 | |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
281 struct ngx_http_core_loc_conf_s { |
96
a23d010f356d
nginx-0.0.1-2003-05-27-16:18:54 import
Igor Sysoev <igor@sysoev.ru>
parents:
95
diff
changeset
|
282 ngx_str_t name; /* location name */ |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
283 |
455 | 284 #if (NGX_PCRE) |
3325 | 285 ngx_http_regex_t *regex; |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
286 #endif |
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
287 |
1353 | 288 unsigned noname:1; /* "if () {}" block or limit_except */ |
3731
72cc5b789021
inherit proxy_pass, fastcgi_pass, uwsgi_pass, scgi_pass inside
Igor Sysoev <igor@sysoev.ru>
parents:
3676
diff
changeset
|
289 unsigned lmt_excpt:1; |
1353 | 290 unsigned named:1; |
485 | 291 |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
292 unsigned exact_match:1; |
467 | 293 unsigned noregex:1; |
294 | |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
295 unsigned auto_redirect:1; |
2205 | 296 #if (NGX_HTTP_GZIP) |
297 unsigned gzip_disable_msie6:2; | |
298 #endif | |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
299 |
2027 | 300 ngx_http_location_tree_node_t *static_locations; |
2546
8b9861c2a32f
pclcf->regex_locations are used with PCRE only
Igor Sysoev <igor@sysoev.ru>
parents:
2534
diff
changeset
|
301 #if (NGX_PCRE) |
2027 | 302 ngx_http_core_loc_conf_t **regex_locations; |
2546
8b9861c2a32f
pclcf->regex_locations are used with PCRE only
Igor Sysoev <igor@sysoev.ru>
parents:
2534
diff
changeset
|
303 #endif |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
304 |
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
305 /* pointer to the modules' loc_conf */ |
2024 | 306 void **loc_conf; |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
307 |
631 | 308 uint32_t limit_except; |
2024 | 309 void **limit_except_loc_conf; |
631 | 310 |
356
2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
Igor Sysoev <igor@sysoev.ru>
parents:
346
diff
changeset
|
311 ngx_http_handler_pt handler; |
71
59229033ae93
nginx-0.0.1-2003-04-08-19:40:10 import
Igor Sysoev <igor@sysoev.ru>
parents:
69
diff
changeset
|
312 |
3535
abb3901be800
fix handling an inherited alias in inclusive location
Igor Sysoev <igor@sysoev.ru>
parents:
3484
diff
changeset
|
313 /* location name length for inclusive location with inherited alias */ |
abb3901be800
fix handling an inherited alias in inclusive location
Igor Sysoev <igor@sysoev.ru>
parents:
3484
diff
changeset
|
314 size_t alias; |
577 | 315 ngx_str_t root; /* root, alias */ |
316 ngx_str_t post_action; | |
317 | |
595 | 318 ngx_array_t *root_lengths; |
319 ngx_array_t *root_values; | |
320 | |
589 | 321 ngx_array_t *types; |
322 ngx_hash_t types_hash; | |
323 ngx_str_t default_type; | |
324 | |
663 | 325 off_t client_max_body_size; /* client_max_body_size */ |
2129 | 326 off_t directio; /* directio */ |
3053 | 327 off_t directio_alignment; /* directio_alignment */ |
663 | 328 |
303
00c5660d2707
nginx-0.0.3-2004-04-01-20:20:53 import
Igor Sysoev <igor@sysoev.ru>
parents:
293
diff
changeset
|
329 size_t client_body_buffer_size; /* client_body_buffer_size */ |
362
7650aea1816f
nginx-0.0.7-2004-06-21-19:59:32 import
Igor Sysoev <igor@sysoev.ru>
parents:
356
diff
changeset
|
330 size_t send_lowat; /* send_lowat */ |
391
b670db10cbbd
nginx-0.0.7-2004-07-14-20:01:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
369
diff
changeset
|
331 size_t postpone_output; /* postpone_output */ |
b670db10cbbd
nginx-0.0.7-2004-07-14-20:01:42 import
Igor Sysoev <igor@sysoev.ru>
parents:
369
diff
changeset
|
332 size_t limit_rate; /* limit_rate */ |
2907 | 333 size_t limit_rate_after; /* limit_rate_after */ |
1197 | 334 size_t sendfile_max_chunk; /* sendfile_max_chunk */ |
3178 | 335 size_t read_ahead; /* read_ahead */ |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
336 |
162
96993d4d5067
nginx-0.0.1-2003-10-28-00:01:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
158
diff
changeset
|
337 ngx_msec_t client_body_timeout; /* client_body_timeout */ |
96
a23d010f356d
nginx-0.0.1-2003-05-27-16:18:54 import
Igor Sysoev <igor@sysoev.ru>
parents:
95
diff
changeset
|
338 ngx_msec_t send_timeout; /* send_timeout */ |
a23d010f356d
nginx-0.0.1-2003-05-27-16:18:54 import
Igor Sysoev <igor@sysoev.ru>
parents:
95
diff
changeset
|
339 ngx_msec_t keepalive_timeout; /* keepalive_timeout */ |
a23d010f356d
nginx-0.0.1-2003-05-27-16:18:54 import
Igor Sysoev <igor@sysoev.ru>
parents:
95
diff
changeset
|
340 ngx_msec_t lingering_time; /* lingering_time */ |
a23d010f356d
nginx-0.0.1-2003-05-27-16:18:54 import
Igor Sysoev <igor@sysoev.ru>
parents:
95
diff
changeset
|
341 ngx_msec_t lingering_timeout; /* lingering_timeout */ |
1652
cc7a7d0b89e8
http resolver and resolver_timeout
Igor Sysoev <igor@sysoev.ru>
parents:
1592
diff
changeset
|
342 ngx_msec_t resolver_timeout; /* resolver_timeout */ |
cc7a7d0b89e8
http resolver and resolver_timeout
Igor Sysoev <igor@sysoev.ru>
parents:
1592
diff
changeset
|
343 |
cc7a7d0b89e8
http resolver and resolver_timeout
Igor Sysoev <igor@sysoev.ru>
parents:
1592
diff
changeset
|
344 ngx_resolver_t *resolver; /* resolver */ |
71
59229033ae93
nginx-0.0.1-2003-04-08-19:40:10 import
Igor Sysoev <igor@sysoev.ru>
parents:
69
diff
changeset
|
345 |
436
9549fc9508e5
nginx-0.0.11-2004-09-23-10:32:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
435
diff
changeset
|
346 time_t keepalive_header; /* keepalive_timeout */ |
9549fc9508e5
nginx-0.0.11-2004-09-23-10:32:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
435
diff
changeset
|
347 |
2888 | 348 ngx_uint_t keepalive_requests; /* keepalive_requests */ |
1806 | 349 ngx_uint_t satisfy; /* satisfy */ |
2361 | 350 ngx_uint_t if_modified_since; /* if_modified_since */ |
2841
faafc084a7a4
fix client_body_in_file_only type
Igor Sysoev <igor@sysoev.ru>
parents:
2785
diff
changeset
|
351 ngx_uint_t client_body_in_file_only; /* client_body_in_file_only */ |
1806 | 352 |
2845 | 353 ngx_flag_t client_body_in_single_buffer; |
354 /* client_body_in_singe_buffer */ | |
509 | 355 ngx_flag_t internal; /* internal */ |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
356 ngx_flag_t sendfile; /* sendfile */ |
3052
6060225e9261
FreeBSD and Linux AIO support
Igor Sysoev <igor@sysoev.ru>
parents:
2979
diff
changeset
|
357 #if (NGX_HAVE_FILE_AIO) |
6060225e9261
FreeBSD and Linux AIO support
Igor Sysoev <igor@sysoev.ru>
parents:
2979
diff
changeset
|
358 ngx_flag_t aio; /* aio */ |
6060225e9261
FreeBSD and Linux AIO support
Igor Sysoev <igor@sysoev.ru>
parents:
2979
diff
changeset
|
359 #endif |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
360 ngx_flag_t tcp_nopush; /* tcp_nopush */ |
452 | 361 ngx_flag_t tcp_nodelay; /* tcp_nodelay */ |
346
55e496a8ece3
nginx-0.0.3-2004-06-06-23:49:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
335
diff
changeset
|
362 ngx_flag_t reset_timedout_connection; /* reset_timedout_connection */ |
1804
d457a1576532
several changes in server_name:
Igor Sysoev <igor@sysoev.ru>
parents:
1790
diff
changeset
|
363 ngx_flag_t server_name_in_redirect; /* server_name_in_redirect */ |
521 | 364 ngx_flag_t port_in_redirect; /* port_in_redirect */ |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
365 ngx_flag_t msie_padding; /* msie_padding */ |
679 | 366 ngx_flag_t msie_refresh; /* msie_refresh */ |
527 | 367 ngx_flag_t log_not_found; /* log_not_found */ |
2261 | 368 ngx_flag_t log_subrequest; /* log_subrequest */ |
679 | 369 ngx_flag_t recursive_error_pages; /* recursive_error_pages */ |
1592 | 370 ngx_flag_t server_tokens; /* server_tokens */ |
3484 | 371 ngx_flag_t chunked_transfer_encoding; /* chunked_transfer_encoding */ |
290
87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
257
diff
changeset
|
372 |
1790
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
373 #if (NGX_HTTP_GZIP) |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
374 ngx_flag_t gzip_vary; /* gzip_vary */ |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
375 |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
376 ngx_uint_t gzip_http_version; /* gzip_http_version */ |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
377 ngx_uint_t gzip_proxied; /* gzip_proxied */ |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
378 |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
379 #if (NGX_PCRE) |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
380 ngx_array_t *gzip_disable; /* gzip_disable */ |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
381 #endif |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
382 #endif |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
383 |
176
c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
Igor Sysoev <igor@sysoev.ru>
parents:
162
diff
changeset
|
384 ngx_array_t *error_pages; /* error_page */ |
2407 | 385 ngx_http_try_file_t *try_files; /* try_files */ |
158
d377ee423603
nginx-0.0.1-2003-10-24-10:53:41 import
Igor Sysoev <igor@sysoev.ru>
parents:
154
diff
changeset
|
386 |
479 | 387 ngx_path_t *client_body_temp_path; /* client_body_temp_path */ |
388 | |
1454 | 389 ngx_open_file_cache_t *open_file_cache; |
1767
c42431762903
open_file_cache_retest > open_file_cache_valid
Igor Sysoev <igor@sysoev.ru>
parents:
1652
diff
changeset
|
390 time_t open_file_cache_valid; |
1772 | 391 ngx_uint_t open_file_cache_min_uses; |
1454 | 392 ngx_flag_t open_file_cache_errors; |
1457 | 393 ngx_flag_t open_file_cache_events; |
201
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
394 |
2785
d478379e51ac
*) refactor error_log processing: listen socket log might inherit built-in
Igor Sysoev <igor@sysoev.ru>
parents:
2701
diff
changeset
|
395 ngx_log_t *error_log; |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
190
diff
changeset
|
396 |
589 | 397 ngx_uint_t types_hash_max_size; |
398 ngx_uint_t types_hash_bucket_size; | |
399 | |
2028
bff8689c6953
move configuration phase only field to the end of structure
Igor Sysoev <igor@sysoev.ru>
parents:
2027
diff
changeset
|
400 ngx_queue_t *locations; |
bff8689c6953
move configuration phase only field to the end of structure
Igor Sysoev <igor@sysoev.ru>
parents:
2027
diff
changeset
|
401 |
485 | 402 #if 0 |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
403 ngx_http_core_loc_conf_t *prev_location; |
485 | 404 #endif |
396
6f3b20c1ac50
nginx-0.0.7-2004-07-18-23:11:20 import
Igor Sysoev <igor@sysoev.ru>
parents:
395
diff
changeset
|
405 }; |
13
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
406 |
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
407 |
2027 | 408 typedef struct { |
409 ngx_queue_t queue; | |
410 ngx_http_core_loc_conf_t *exact; | |
411 ngx_http_core_loc_conf_t *inclusive; | |
412 ngx_str_t *name; | |
413 u_char *file_name; | |
414 ngx_uint_t line; | |
415 ngx_queue_t list; | |
416 } ngx_http_location_queue_t; | |
417 | |
418 | |
419 struct ngx_http_location_tree_node_s { | |
420 ngx_http_location_tree_node_t *left; | |
421 ngx_http_location_tree_node_t *right; | |
422 ngx_http_location_tree_node_t *tree; | |
423 | |
424 ngx_http_core_loc_conf_t *exact; | |
425 ngx_http_core_loc_conf_t *inclusive; | |
426 | |
427 u_char auto_redirect; | |
428 u_char len; | |
429 u_char name[1]; | |
430 }; | |
431 | |
432 | |
681 | 433 void ngx_http_core_run_phases(ngx_http_request_t *r); |
434 ngx_int_t ngx_http_core_generic_phase(ngx_http_request_t *r, | |
435 ngx_http_phase_handler_t *ph); | |
3634
40e356cf4176
add files missed in the previuos commit
Igor Sysoev <igor@sysoev.ru>
parents:
3632
diff
changeset
|
436 ngx_int_t ngx_http_core_rewrite_phase(ngx_http_request_t *r, |
40e356cf4176
add files missed in the previuos commit
Igor Sysoev <igor@sysoev.ru>
parents:
3632
diff
changeset
|
437 ngx_http_phase_handler_t *ph); |
681 | 438 ngx_int_t ngx_http_core_find_config_phase(ngx_http_request_t *r, |
439 ngx_http_phase_handler_t *ph); | |
440 ngx_int_t ngx_http_core_post_rewrite_phase(ngx_http_request_t *r, | |
441 ngx_http_phase_handler_t *ph); | |
442 ngx_int_t ngx_http_core_access_phase(ngx_http_request_t *r, | |
443 ngx_http_phase_handler_t *ph); | |
444 ngx_int_t ngx_http_core_post_access_phase(ngx_http_request_t *r, | |
445 ngx_http_phase_handler_t *ph); | |
2407 | 446 ngx_int_t ngx_http_core_try_files_phase(ngx_http_request_t *r, |
447 ngx_http_phase_handler_t *ph); | |
681 | 448 ngx_int_t ngx_http_core_content_phase(ngx_http_request_t *r, |
449 ngx_http_phase_handler_t *ph); | |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
450 |
2138 | 451 |
452 void *ngx_http_test_content_type(ngx_http_request_t *r, ngx_hash_t *types_hash); | |
201
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
453 ngx_int_t ngx_http_set_content_type(ngx_http_request_t *r); |
2979
b941147f2b2e
ngx_http_set_exten() is always successful since 0.3.46
Igor Sysoev <igor@sysoev.ru>
parents:
2907
diff
changeset
|
454 void ngx_http_set_exten(ngx_http_request_t *r); |
3632 | 455 ngx_int_t ngx_http_send_response(ngx_http_request_t *r, ngx_uint_t status, |
456 ngx_str_t *ct, ngx_http_complex_value_t *cv); | |
557 | 457 u_char *ngx_http_map_uri_to_path(ngx_http_request_t *r, ngx_str_t *name, |
773 | 458 size_t *root_length, size_t reserved); |
539 | 459 ngx_int_t ngx_http_auth_basic_user(ngx_http_request_t *r); |
1790
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
460 #if (NGX_HTTP_GZIP) |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
461 ngx_int_t ngx_http_gzip_ok(ngx_http_request_t *r); |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
462 #endif |
775edc46ee66
ngx_http_gzip_static_module and gzip_disable
Igor Sysoev <igor@sysoev.ru>
parents:
1772
diff
changeset
|
463 |
201
267ea1d98683
nginx-0.0.1-2003-11-30-23:03:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
464 |
509 | 465 ngx_int_t ngx_http_subrequest(ngx_http_request_t *r, |
758
86bb73dc8d40
fix <!--#include virtual=... wait="yes" -->
Igor Sysoev <igor@sysoev.ru>
parents:
681
diff
changeset
|
466 ngx_str_t *uri, ngx_str_t *args, ngx_http_request_t **sr, |
777
4ab852b691f5
<!--#include virtual=... set=... -->
Igor Sysoev <igor@sysoev.ru>
parents:
773
diff
changeset
|
467 ngx_http_post_subrequest_t *psr, ngx_uint_t flags); |
356
2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
Igor Sysoev <igor@sysoev.ru>
parents:
346
diff
changeset
|
468 ngx_int_t ngx_http_internal_redirect(ngx_http_request_t *r, |
499 | 469 ngx_str_t *uri, ngx_str_t *args); |
1353 | 470 ngx_int_t ngx_http_named_location(ngx_http_request_t *r, ngx_str_t *name); |
471 | |
485 | 472 |
569 | 473 ngx_http_cleanup_t *ngx_http_cleanup_add(ngx_http_request_t *r, size_t size); |
474 | |
44
0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
Igor Sysoev <igor@sysoev.ru>
parents:
41
diff
changeset
|
475 |
356
2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
Igor Sysoev <igor@sysoev.ru>
parents:
346
diff
changeset
|
476 typedef ngx_int_t (*ngx_http_output_header_filter_pt)(ngx_http_request_t *r); |
2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
Igor Sysoev <igor@sysoev.ru>
parents:
346
diff
changeset
|
477 typedef ngx_int_t (*ngx_http_output_body_filter_pt) |
499 | 478 (ngx_http_request_t *r, ngx_chain_t *chain); |
346
55e496a8ece3
nginx-0.0.3-2004-06-06-23:49:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
335
diff
changeset
|
479 |
55e496a8ece3
nginx-0.0.3-2004-06-06-23:49:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
335
diff
changeset
|
480 |
356
2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
Igor Sysoev <igor@sysoev.ru>
parents:
346
diff
changeset
|
481 ngx_int_t ngx_http_output_filter(ngx_http_request_t *r, ngx_chain_t *chain); |
2e3cbc1bbe3c
nginx-0.0.7-2004-06-16-19:32:11 import
Igor Sysoev <igor@sysoev.ru>
parents:
346
diff
changeset
|
482 ngx_int_t ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *chain); |
346
55e496a8ece3
nginx-0.0.3-2004-06-06-23:49:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
335
diff
changeset
|
483 |
55e496a8ece3
nginx-0.0.3-2004-06-06-23:49:18 import
Igor Sysoev <igor@sysoev.ru>
parents:
335
diff
changeset
|
484 |
577 | 485 extern ngx_module_t ngx_http_core_module; |
486 | |
487 extern ngx_uint_t ngx_http_max_module; | |
488 | |
2701 | 489 extern ngx_str_t ngx_http_core_get_method; |
490 | |
577 | 491 |
492 #define ngx_http_clear_content_length(r) \ | |
493 \ | |
494 r->headers_out.content_length_n = -1; \ | |
495 if (r->headers_out.content_length) { \ | |
496 r->headers_out.content_length->hash = 0; \ | |
497 r->headers_out.content_length = NULL; \ | |
498 } | |
499 \ | |
500 #define ngx_http_clear_accept_ranges(r) \ | |
501 \ | |
581 | 502 r->allow_ranges = 0; \ |
577 | 503 if (r->headers_out.accept_ranges) { \ |
2024 | 504 r->headers_out.accept_ranges->hash = 0; \ |
577 | 505 r->headers_out.accept_ranges = NULL; \ |
506 } | |
507 | |
508 #define ngx_http_clear_last_modified(r) \ | |
509 \ | |
510 r->headers_out.last_modified_time = -1; \ | |
511 if (r->headers_out.last_modified) { \ | |
512 r->headers_out.last_modified->hash = 0; \ | |
513 r->headers_out.last_modified = NULL; \ | |
514 } | |
515 | |
516 | |
13
2aba961a1d34
nginx-0.0.1-2002-09-16-19:01:44 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
517 #endif /* _NGX_HTTP_CORE_H_INCLUDED_ */ |