Mercurial > hg > nginx
comparison src/http/modules/ngx_http_proxy_module.c @ 2030:f1cff424caeb
remove directives deprecated in 0.3.x
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 24 May 2008 15:48:50 +0000 |
parents | 7018254cc006 |
children | 2a92804f4109 |
comparison
equal
deleted
inserted
replaced
2029:c036922f6f07 | 2030:f1cff424caeb |
---|---|
140 | 140 |
141 | 141 |
142 static ngx_conf_post_t ngx_http_proxy_lowat_post = | 142 static ngx_conf_post_t ngx_http_proxy_lowat_post = |
143 { ngx_http_proxy_lowat_check }; | 143 { ngx_http_proxy_lowat_check }; |
144 | 144 |
145 static ngx_conf_deprecated_t ngx_conf_deprecated_proxy_header_buffer_size = { | |
146 ngx_conf_deprecated, "proxy_header_buffer_size", "proxy_buffer_size" | |
147 }; | |
148 | |
149 static ngx_conf_deprecated_t ngx_conf_deprecated_proxy_redirect_errors = { | |
150 ngx_conf_deprecated, "proxy_redirect_errors", "proxy_intercept_errors" | |
151 }; | |
152 | |
153 | 145 |
154 static ngx_conf_bitmask_t ngx_http_proxy_next_upstream_masks[] = { | 146 static ngx_conf_bitmask_t ngx_http_proxy_next_upstream_masks[] = { |
155 { ngx_string("error"), NGX_HTTP_UPSTREAM_FT_ERROR }, | 147 { ngx_string("error"), NGX_HTTP_UPSTREAM_FT_ERROR }, |
156 { ngx_string("timeout"), NGX_HTTP_UPSTREAM_FT_TIMEOUT }, | 148 { ngx_string("timeout"), NGX_HTTP_UPSTREAM_FT_TIMEOUT }, |
157 { ngx_string("invalid_header"), NGX_HTTP_UPSTREAM_FT_INVALID_HEADER }, | 149 { ngx_string("invalid_header"), NGX_HTTP_UPSTREAM_FT_INVALID_HEADER }, |
233 ngx_conf_set_flag_slot, | 225 ngx_conf_set_flag_slot, |
234 NGX_HTTP_LOC_CONF_OFFSET, | 226 NGX_HTTP_LOC_CONF_OFFSET, |
235 offsetof(ngx_http_proxy_loc_conf_t, upstream.intercept_errors), | 227 offsetof(ngx_http_proxy_loc_conf_t, upstream.intercept_errors), |
236 NULL }, | 228 NULL }, |
237 | 229 |
238 { ngx_string("proxy_redirect_errors"), | |
239 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, | |
240 ngx_conf_set_flag_slot, | |
241 NGX_HTTP_LOC_CONF_OFFSET, | |
242 offsetof(ngx_http_proxy_loc_conf_t, upstream.intercept_errors), | |
243 &ngx_conf_deprecated_proxy_redirect_errors }, | |
244 | |
245 { ngx_string("proxy_set_header"), | 230 { ngx_string("proxy_set_header"), |
246 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE2, | 231 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE2, |
247 ngx_conf_set_keyval_slot, | 232 ngx_conf_set_keyval_slot, |
248 NGX_HTTP_LOC_CONF_OFFSET, | 233 NGX_HTTP_LOC_CONF_OFFSET, |
249 offsetof(ngx_http_proxy_loc_conf_t, headers_source), | 234 offsetof(ngx_http_proxy_loc_conf_t, headers_source), |
295 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | 280 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, |
296 ngx_conf_set_size_slot, | 281 ngx_conf_set_size_slot, |
297 NGX_HTTP_LOC_CONF_OFFSET, | 282 NGX_HTTP_LOC_CONF_OFFSET, |
298 offsetof(ngx_http_proxy_loc_conf_t, upstream.buffer_size), | 283 offsetof(ngx_http_proxy_loc_conf_t, upstream.buffer_size), |
299 NULL }, | 284 NULL }, |
300 | |
301 { ngx_string("proxy_header_buffer_size"), | |
302 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | |
303 ngx_conf_set_size_slot, | |
304 NGX_HTTP_LOC_CONF_OFFSET, | |
305 offsetof(ngx_http_proxy_loc_conf_t, upstream.buffer_size), | |
306 &ngx_conf_deprecated_proxy_header_buffer_size }, | |
307 | 285 |
308 { ngx_string("proxy_read_timeout"), | 286 { ngx_string("proxy_read_timeout"), |
309 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | 287 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, |
310 ngx_conf_set_msec_slot, | 288 ngx_conf_set_msec_slot, |
311 NGX_HTTP_LOC_CONF_OFFSET, | 289 NGX_HTTP_LOC_CONF_OFFSET, |