Preserve the Host header when forwarding from nginx to squid
authorTom Hughes <tom@compton.nu>
Tue, 5 Jun 2018 08:43:22 +0000 (09:43 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 5 Jun 2018 08:43:22 +0000 (09:43 +0100)
cookbooks/tilecache/templates/default/nginx_tile.conf.erb

index 0f4f9e5..95d7b8b 100644 (file)
@@ -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.