From 334b76d2a903465fed9d3a3b3d5b7fdf3347c3d0 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 7 Oct 2007 11:47:24 +0000 Subject: [PATCH 1/1] Make lighttpd reject 0.4 API requests without talking to rails. --- config/lighttpd.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.45.1