diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2016-07-13 02:12:56 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2016-07-13 04:12:08 -0400 |
commit | ce7d040bf3def63bf8cfdcd9686c260349124016 (patch) | |
tree | d2f2183605f0c2a5c8dbb89bdf73c890a40dbb3d /tests/lighttpd.conf | |
parent | 5e76b284df750e6c4196c4e24ff55be9271763f6 (diff) | |
download | lighttpd-git-ce7d040bf3def63bf8cfdcd9686c260349124016.tar.gz |
[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.conf | 5 |
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 = () |