summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_uwsgi_module.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c
index c1d0035cc..2f64d745d 100644
--- a/src/http/modules/ngx_http_uwsgi_module.c
+++ b/src/http/modules/ngx_http_uwsgi_module.c
@@ -629,9 +629,18 @@ 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[] = {
+ { ngx_string("HTTP_HOST"),
+ ngx_string("$host$is_request_port$request_port") },
{ ngx_string("HTTP_IF_MODIFIED_SINCE"),
ngx_string("$upstream_cache_last_modified") },
{ ngx_string("HTTP_IF_UNMODIFIED_SINCE"), ngx_string("") },
@@ -1995,7 +2004,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;
}