From: Tom Hughes Date: Sun, 7 Oct 2007 11:47:24 +0000 (+0000) Subject: Make lighttpd reject 0.4 API requests without talking to rails. X-Git-Tag: live~8091 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/334b76d2a903465fed9d3a3b3d5b7fdf3347c3d0 Make lighttpd reject 0.4 API requests without talking to rails. --- diff --git a/config/lighttpd.conf b/config/lighttpd.conf index 317413f57..75647f248 100644 --- a/config/lighttpd.conf +++ b/config/lighttpd.conf @@ -31,10 +31,11 @@ server.errorlog = "/var/log/lighttpd/error.log" $HTTP["remoteip"] == "127.0.0.1" { status.status-url = "/server-status" } # -# API 0.3 is long dead, so fail any attempt to access it without +# Fail any attempt to access old versions of the API without # getting rails involved at all # $HTTP["url"] =~ "^/api/0.3/" { url.access-deny = ("") } +$HTTP["url"] =~ "^/api/0.4/" { url.access-deny = ("") } # # IP blocked at SteveC's request as it was trying to download the