]> git.openstreetmap.org Git - rails.git/blobdiff - config/lighttpd.conf
Ignore exceptions looking up a user from a session.
[rails.git] / config / lighttpd.conf
index ffe2ea4f3adb364752b2201e6246794826bb0744..0a6840e4bb0720d3a8e9e7f27caab9ec159a8c80 100644 (file)
@@ -7,6 +7,7 @@ server.modules = (
   "mod_compress",
   "mod_evasive",
   "mod_fastcgi",
+  "mod_redirect",
   "mod_status"
 )
 
@@ -40,6 +41,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
 #
@@ -74,6 +81,11 @@ compress.filetype = (
 #
 compress.cache-dir = "/var/cache/lighttpd"
 
+#
+# Redirect wiki requests to the wiki
+#
+url.redirect = ( "^/wiki/(.*)$" => "http://wiki.openstreetmap.org/$1" )
+
 #
 # Serve static content from the rails public area ourselves
 #