summaryrefslogtreecommitdiff
path: root/tests/condition.conf
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2011-02-10 07:56:11 +0000
committerStefan Bühler <stbuehler@web.de>2011-02-10 07:56:11 +0000
commit1eef447d329f436aa5838954310121ae5928f95c (patch)
tree21dea48cb5d65a0a05ba369a5c41bc1e10c9753a /tests/condition.conf
parentabf07f3a0288f32b02b203f95c3539bf4201ad75 (diff)
downloadlighttpd-git-1eef447d329f436aa5838954310121ae5928f95c.tar.gz
[tests] Add path traversal check with $HTTP['url']
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2777 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/condition.conf')
-rw-r--r--tests/condition.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/condition.conf b/tests/condition.conf
index a812c8a8..d1e88821 100644
--- a/tests/condition.conf
+++ b/tests/condition.conf
@@ -57,3 +57,13 @@ else $HTTP["host"] == "test3.example.org" {
url.redirect = ("^" => "/match_5")
}
}
+
+else $HTTP["host"] == "test4.example.org" {
+ server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
+ server.name = "test4.example.org"
+ url.redirect = ("^" => "/match_6")
+
+ $HTTP["url"] =~ "^/subdir/" {
+ url.redirect = ("^" => "/match_7")
+ }
+}