summaryrefslogtreecommitdiff
path: root/tests/lighttpd.conf
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-07-13 02:12:56 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2016-07-13 04:12:08 -0400
commitce7d040bf3def63bf8cfdcd9686c260349124016 (patch)
treed2f2183605f0c2a5c8dbb89bdf73c890a40dbb3d /tests/lighttpd.conf
parent5e76b284df750e6c4196c4e24ff55be9271763f6 (diff)
downloadlighttpd1.4-ce7d040bf3def63bf8cfdcd9686c260349124016.tar.gz
lighttpd1.4-ce7d040bf3def63bf8cfdcd9686c260349124016.zip
[mod_access] new directive url.access-allow (fixes #1421)
url.access-allow is list of allowed url suffixes (e.g. file extensions) If url.access-allow has been set, then deny any URL that does not match the explicitly listed suffixes. (thx japc) x-ref: "access_allow directive for lighttpd" https://redmine.lighttpd.net/issues/1421
Diffstat (limited to 'tests/lighttpd.conf')
-rw-r--r--tests/lighttpd.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lighttpd.conf b/tests/lighttpd.conf
index 1893c5d4..864a28cc 100644
--- a/tests/lighttpd.conf
+++ b/tests/lighttpd.conf
@@ -292,6 +292,11 @@ $HTTP["cookie"] =~ "empty-ref" {
}
}
+$HTTP["host"] =~ "allow\.example\.org$" {
+ url.access-allow = ( ".txt" ) # allow takes precedence over deny
+ url.access-deny = ( ".txt" )
+}
+
$HTTP["host"] == "etag.example.org" {
static-file.etags = "disable"
compress.filetype = ()