Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/http/modules/ngx_http_fastcgi_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,13 @@ static ngx_str_t ngx_http_fastcgi_hide_headers[] = {
};


static ngx_keyval_t ngx_http_fastcgi_headers[] = {
{ ngx_string("HTTP_HOST"),
ngx_string("$host$is_request_port$request_port") },
{ ngx_null_string, ngx_null_string }
};


#if (NGX_HTTP_CACHE)

static ngx_keyval_t ngx_http_fastcgi_cache_headers[] = {
Expand Down Expand Up @@ -3276,7 +3283,8 @@ ngx_http_fastcgi_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
conf->params_source = prev->params_source;
}

rc = ngx_http_fastcgi_init_params(cf, conf, &conf->params, NULL);
rc = ngx_http_fastcgi_init_params(cf, conf, &conf->params,
ngx_http_fastcgi_headers);
if (rc != NGX_OK) {
return NGX_CONF_ERROR;
}
Expand Down
10 changes: 9 additions & 1 deletion src/http/modules/ngx_http_scgi_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,13 @@ static ngx_str_t ngx_http_scgi_hide_headers[] = {
};


static ngx_keyval_t ngx_http_scgi_headers[] = {
{ ngx_string("HTTP_HOST"),
ngx_string("$host$is_request_port$request_port") },
{ ngx_null_string, ngx_null_string }
};


#if (NGX_HTTP_CACHE)

static ngx_keyval_t ngx_http_scgi_cache_headers[] = {
Expand Down Expand Up @@ -1675,7 +1682,8 @@ ngx_http_scgi_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
conf->params_source = prev->params_source;
}

rc = ngx_http_scgi_init_params(cf, conf, &conf->params, NULL);
rc = ngx_http_scgi_init_params(cf, conf, &conf->params,
ngx_http_scgi_headers);
if (rc != NGX_OK) {
return NGX_CONF_ERROR;
}
Expand Down
10 changes: 9 additions & 1 deletion src/http/modules/ngx_http_uwsgi_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,13 @@ static ngx_str_t ngx_http_uwsgi_hide_headers[] = {
};


static ngx_keyval_t ngx_http_uwsgi_headers[] = {
{ ngx_string("HTTP_HOST"),
ngx_string("$host$is_request_port$request_port") },
{ ngx_null_string, ngx_null_string }
};


#if (NGX_HTTP_CACHE)

static ngx_keyval_t ngx_http_uwsgi_cache_headers[] = {
Expand Down Expand Up @@ -1995,7 +2002,8 @@ ngx_http_uwsgi_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
conf->params_source = prev->params_source;
}

rc = ngx_http_uwsgi_init_params(cf, conf, &conf->params, NULL);
rc = ngx_http_uwsgi_init_params(cf, conf, &conf->params,
ngx_http_uwsgi_headers);
if (rc != NGX_OK) {
return NGX_CONF_ERROR;
}
Expand Down