]> git.openstreetmap.org Git - rails.git/blobdiff - config/lighttpd.conf
Fix alignment of greeting in top right corner of site.
[rails.git] / config / lighttpd.conf
index 6dca6bd572f7ad7afbcec8cdba7fae4cd44f9928..557a048bcfaa573cd441ef5e42dd57a65269d45e 100644 (file)
@@ -40,6 +40,12 @@ $HTTP["url"] =~ "^/api/0.3/" { url.access-deny = ("") }
 #
 $HTTP["remoteip"] == "143.210.16.160" { url.access-deny = ("") }
 
+#
+# Rule to block tilesAtHome when somebody decides to queue vast 
+# number of tiles for rerendering
+#
+#$HTTP["useragent"] == "tilesAtHome" { url.access-deny = ("") }
+
 #
 # Limit connections to 20 per IP address
 #
@@ -58,6 +64,22 @@ mimetype.assign = (
   ".txt" => "text/plain"
 )
 
+#
+# Enable compression of appropriate static content
+#
+compress.filetype = ( 
+  "application/x-javascript",
+  "application/x-shockwave-flash",
+  "text/css",
+  "text/html",
+  "text/plain"
+)
+
+#
+# Cache compressed content
+#
+compress.cache-dir = "/var/cache/lighttpd"
+
 #
 # Serve static content from the rails public area ourselves
 #