"mod_cgi",
"mod_compress",
"mod_evasive",
+ "mod_expire",
"mod_fastcgi",
"mod_redirect",
"mod_status"
$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
"text/plain"
)
+#
+# Set expiry for static content
+#
+expire.url = (
+ "/images/" => "access 10 years",
+ "/javascripts/" => "access 10 years",
+ "/openlayers/" => "access 10 years",
+ "/stylesheets/" => "access 10 years"
+)
+
#
# Cache compressed content
#