Make lighttpd reject 0.4 API requests without talking to rails.
This commit is contained in:
parent
09ccace450
commit
334b76d2a9
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue