]> git.openstreetmap.org Git - chef.git/commitdiff
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 0f4f9e5206f711e7c2e8fddd7c6becde9d4e1703..95d7b8b8c062f559c22d3de12534da4740e90094 100644 (file)
@@ -53,6 +53,8 @@ server {
 
       proxy_connect_timeout 5s;
 
 
       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.
       # Do not pass cookies to backends.
       proxy_set_header Cookie '';
       # Do not pass Accept-Encoding to backends.