diff options
author | Jan Kneschke <jan@kneschke.de> | 2005-08-08 14:40:47 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2005-08-08 14:40:47 +0000 |
commit | 6e78c2c8dfb69684adee82ee28b38c137156bca9 (patch) | |
tree | 09f561df82237dc0b2a159557b1f4428ded2156f /tests/condition.conf | |
parent | 8073d5fe9f720a0564dbced1fdef187f5c19ffa3 (diff) | |
download | lighttpd-git-6e78c2c8dfb69684adee82ee28b38c137156bca9.tar.gz |
user defined variable, compute on parsing: string+string, int+int, array+array, var+=expression.
"include" sub configuration file. (merged ([308], [309], [306], [305])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@520 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/condition.conf')
-rw-r--r-- | tests/condition.conf | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/condition.conf b/tests/condition.conf index f5947cf6..7e34e493 100644 --- a/tests/condition.conf +++ b/tests/condition.conf @@ -16,7 +16,7 @@ server.tag = "Apache 1.3.29" server.modules = ( - "mod_access", + "mod_redirect", "mod_accesslog" ) ######################## MODULE CONFIG ############################ @@ -26,23 +26,23 @@ accesslog.filename = "/tmp/lighttpd/logs/lighttpd.access.log" mimetype.assign = ( ".html" => "text/html" ) -# ban first, unban later -url.access-deny = ( "index.html" ) +url.redirect = ("^" => "/default") $HTTP["host"] == "www.example.org" { server.document-root = "/tmp/lighttpd/servers/www.example.org/pages/" server.name = "www.example.org" + url.redirect = ("^" => "/match_1") } | $HTTP["host"] == "test1.example.org" { server.document-root = "/tmp/lighttpd/servers/www.example.org/pages/" server.name = "test1.example.org" - url.access-deny = ( "nothing" ) + url.redirect = ("^" => "/match_2") } # comments | $HTTP["host"] == "test2.example.org" { server.document-root = "/tmp/lighttpd/servers/www.example.org/pages/" server.name = "test2.example.org" - url.access-deny = ( "nothing" ) + url.redirect = ("^" => "/match_3") } # comments @@ -50,10 +50,10 @@ $HTTP["host"] == "www.example.org" { | $HTTP["host"] == "test3.example.org" { server.document-root = "/tmp/lighttpd/servers/www.example.org/pages/" server.name = "test3.example.org" - # comments - url.access-deny = ( "nothing" ) + url.redirect = ("^" => "/match_4") + # comments $HTTP["url"] == "/index.html" { - url.access-deny = ( "index.html" ) + url.redirect = ("^" => "/match_5") } } |