X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/98bef7ba311c5de1ea6012cf830849f14303d520..dcc3ccc225e0e4f6c2683a384dc45137945c4f0f:/config/lighttpd.conf diff --git a/config/lighttpd.conf b/config/lighttpd.conf index 21bb09193..9e8acadba 100644 --- a/config/lighttpd.conf +++ b/config/lighttpd.conf @@ -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 #