Mercurial > hg > nginx
comparison src/http/modules/ngx_http_fastcgi_module.c @ 3667:12bd9e26fadb
use shared ngx_http_upstream_ignore_headers_masks[]
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 02 Jul 2010 09:25:38 +0000 |
parents | edcc271f7c4c |
children | 2728c4e4a9ae |
comparison
equal
deleted
inserted
replaced
3666:cd6d45c0a119 | 3667:12bd9e26fadb |
---|---|
181 { ngx_string("off"), NGX_HTTP_UPSTREAM_FT_OFF }, | 181 { ngx_string("off"), NGX_HTTP_UPSTREAM_FT_OFF }, |
182 { ngx_null_string, 0 } | 182 { ngx_null_string, 0 } |
183 }; | 183 }; |
184 | 184 |
185 | 185 |
186 static ngx_conf_bitmask_t ngx_http_fastcgi_ignore_headers_masks[] = { | |
187 { ngx_string("X-Accel-Redirect"), NGX_HTTP_UPSTREAM_IGN_XA_REDIRECT }, | |
188 { ngx_string("X-Accel-Expires"), NGX_HTTP_UPSTREAM_IGN_XA_EXPIRES }, | |
189 { ngx_string("Expires"), NGX_HTTP_UPSTREAM_IGN_EXPIRES }, | |
190 { ngx_string("Cache-Control"), NGX_HTTP_UPSTREAM_IGN_CACHE_CONTROL }, | |
191 { ngx_null_string, 0 } | |
192 }; | |
193 | |
194 | |
195 ngx_module_t ngx_http_fastcgi_module; | 186 ngx_module_t ngx_http_fastcgi_module; |
196 | 187 |
197 | 188 |
198 static ngx_command_t ngx_http_fastcgi_commands[] = { | 189 static ngx_command_t ngx_http_fastcgi_commands[] = { |
199 | 190 |
428 { ngx_string("fastcgi_ignore_headers"), | 419 { ngx_string("fastcgi_ignore_headers"), |
429 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_1MORE, | 420 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_1MORE, |
430 ngx_conf_set_bitmask_slot, | 421 ngx_conf_set_bitmask_slot, |
431 NGX_HTTP_LOC_CONF_OFFSET, | 422 NGX_HTTP_LOC_CONF_OFFSET, |
432 offsetof(ngx_http_fastcgi_loc_conf_t, upstream.ignore_headers), | 423 offsetof(ngx_http_fastcgi_loc_conf_t, upstream.ignore_headers), |
433 &ngx_http_fastcgi_ignore_headers_masks }, | 424 &ngx_http_upstream_ignore_headers_masks }, |
434 | 425 |
435 { ngx_string("fastcgi_catch_stderr"), | 426 { ngx_string("fastcgi_catch_stderr"), |
436 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, | 427 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, |
437 ngx_conf_set_str_array_slot, | 428 ngx_conf_set_str_array_slot, |
438 NGX_HTTP_LOC_CONF_OFFSET, | 429 NGX_HTTP_LOC_CONF_OFFSET, |