Preserve the Host header when forwarding from nginx to squid
[chef.git] / cookbooks / tilecache / templates / default / nginx_tile.conf.erb
index 0f4f9e5206f711e7c2e8fddd7c6becde9d4e1703..95d7b8b8c062f559c22d3de12534da4740e90094 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.