# 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"
#
#
#$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
#