]> git.openstreetmap.org Git - rails.git/blobdiff - config/lighttpd.conf
Log the requested language.
[rails.git] / config / lighttpd.conf
index 21bb09193051a0a85e88878adfa37508f1b5c880..9e8acadbaf8221d05a741f3052d3dd8831fba7a7 100644 (file)
@@ -26,6 +26,7 @@ server.reject-expect-100-with-417 = "disable"
 # Setup logging
 #
 accesslog.filename = "/var/log/lighttpd/access.log"
+accesslog.format = "%h %V %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Accept-Language}i\""
 server.errorlog = "/var/log/lighttpd/error.log"
 
 #
@@ -49,6 +50,14 @@ $HTTP["remoteip"] == "143.210.16.160" { url.access-deny = ("") }
 #
 #$HTTP["useragent"] == "tilesAtHome" { url.access-deny = ("") }
 
+#
+# Block JOSM revisions  1722-1727 as they have a serious bug that causes
+# lat/lon to be swapped (http://josm.openstreetmap.de/ticket/2804)
+#
+$HTTP["useragent"] =~ "^JOSM/[0-9]+\.[0-9]+ \(172[234567] " {
+  url.access-deny = ("")
+}
+
 #
 # Limit connections to 20 per IP address
 #