From: Tom Hughes Date: Tue, 5 Jun 2018 08:43:22 +0000 (+0100) Subject: Preserve the Host header when forwarding from nginx to squid X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/0e71c9d6699942a974cdb11614b8b5cc78401027?hp=37ad8f9cc2cc71005fbfc4046fe47c99c577b500 Preserve the Host header when forwarding from nginx to squid --- diff --git a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb index 0f4f9e520..95d7b8b8c 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb @@ -53,6 +53,8 @@ server { proxy_connect_timeout 5s; + # Preserve host header. + proxy_set_header Host $host; # Do not pass cookies to backends. proxy_set_header Cookie ''; # Do not pass Accept-Encoding to backends.