Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add passenger_ignore_headers config option to Nginx.

Closes issue #596.
  • Loading branch information...
commit 384dd50e45ac159026f643da702880cbc48c7de8 1 parent 944ec17
@FooBarWidget FooBarWidget authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 ext/nginx/Configuration.c
View
10 ext/nginx/Configuration.c
@@ -575,6 +575,9 @@ passenger_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
return NGX_CONF_ERROR;
}
+ ngx_conf_merge_bitmask_value(conf->upstream_config.ignore_headers,
+ prev->upstream_config.ignore_headers,
+ NGX_CONF_BITMASK_SET);
ngx_conf_merge_bitmask_value(conf->upstream_config.next_upstream,
prev->upstream_config.next_upstream,
@@ -1308,6 +1311,13 @@ const ngx_command_t passenger_commands[] = {
offsetof(passenger_loc_conf_t, max_preloader_idle_time),
NULL },
+ { ngx_string("passenger_ignore_headers"),
+ NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_1MORE,
+ ngx_conf_set_bitmask_slot,
+ NGX_HTTP_LOC_CONF_OFFSET,
+ offsetof(passenger_loc_conf_t, upstream_config.ignore_headers),
+ &ngx_http_upstream_ignore_headers_masks },
+
{ ngx_string("passenger_pass_header"),
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
ngx_conf_set_str_array_slot,
Please sign in to comment.
Something went wrong with that request. Please try again.