]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/templates/default/nginx_tile.conf.erb
tilecache: increase backend keepalive connection
[chef.git] / cookbooks / tilecache / templates / default / nginx_tile.conf.erb
index 0f4f9e5206f711e7c2e8fddd7c6becde9d4e1703..6b5d2c48edbca90d9553e8126714483367261626 100644 (file)
@@ -3,7 +3,7 @@
 upstream tile_cache_backend {
     server 127.0.0.1;
 
-    keepalive 32;
+    keepalive 256;
 }
 
 # Rates table based on current cookie value
@@ -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.