summaryrefslogtreecommitdiff
path: root/tests/lighttpd.conf
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2009-10-12 21:49:09 +0000
committerStefan Bühler <stbuehler@web.de>2009-10-12 21:49:09 +0000
commit83145e8ba6b768f94eb42b236f7ccd3909085946 (patch)
treea491105f458791e0c8babea258c2c2111ed9bfb3 /tests/lighttpd.conf
parentb9f5f1de8c5f167cd1493614e31016208bc4d840 (diff)
downloadlighttpd1.4-83145e8ba6b768f94eb42b236f7ccd3909085946.tar.gz
lighttpd1.4-83145e8ba6b768f94eb42b236f7ccd3909085946.zip
mod_rewrite: add url.rewrite-[repeat-]if-not-file to rewrite if file doesn't exist or is not a regular file (fixes #985, thx lucas aerbeydt)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2647 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/lighttpd.conf')
-rw-r--r--tests/lighttpd.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lighttpd.conf b/tests/lighttpd.conf
index ec5c7f7a..4fe516d2 100644
--- a/tests/lighttpd.conf
+++ b/tests/lighttpd.conf
@@ -127,6 +127,8 @@ url.access-deny = ( "~", ".inc")
url.rewrite = ( "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1",
"^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1" )
+url.rewrite-if-not-file = ( "^(/rewrite/[^?]*)(?:\?(.*))?$" => "/indexfile/rewrite.php?file=$1&$2" )
+
expire.url = ( "/expire/access" => "access 2 hours",
"/expire/modification" => "access plus 1 seconds 2 minutes")