summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-03-04 18:38:46 +0000
committerJan Kneschke <jan@kneschke.de>2005-03-04 18:38:46 +0000
commita9f7841379c51901897c654283495a8dce4ddc98 (patch)
tree435780083e1d5e8660f0c824d6344ddc949152bf /tests
parentb41aa700abb4167bbfa93983855d4068487418cb (diff)
downloadlighttpd-git-a9f7841379c51901897c654283495a8dce4ddc98.tar.gz
2 rewrite tests
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@92 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/docroot/www/indexfile/Makefile.am2
-rw-r--r--tests/docroot/www/indexfile/rewrite.php3
-rw-r--r--tests/lighttpd.conf3
4 files changed, 8 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 85dd0a5b..3e80f9ff 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -32,6 +32,7 @@ CONFS=fastcgi-10.conf \
mod-fastcgi.t \
mod-redirect.t \
mod-userdir.t \
+ mod-rewrite.t \
request.t
diff --git a/tests/docroot/www/indexfile/Makefile.am b/tests/docroot/www/indexfile/Makefile.am
index 2487a42b..04727308 100644
--- a/tests/docroot/www/indexfile/Makefile.am
+++ b/tests/docroot/www/indexfile/Makefile.am
@@ -1 +1 @@
-EXTRA_DIST=index.php return-404.php
+EXTRA_DIST=index.php return-404.php rewrite.php
diff --git a/tests/docroot/www/indexfile/rewrite.php b/tests/docroot/www/indexfile/rewrite.php
new file mode 100644
index 00000000..fb412907
--- /dev/null
+++ b/tests/docroot/www/indexfile/rewrite.php
@@ -0,0 +1,3 @@
+<?php
+ print $_SERVER["QUERY_STRING"];
+?>
diff --git a/tests/lighttpd.conf b/tests/lighttpd.conf
index 2545e570..1cbdab56 100644
--- a/tests/lighttpd.conf
+++ b/tests/lighttpd.conf
@@ -125,6 +125,9 @@ url.access-deny = ( "~", ".inc")
url.redirect = ( "^/redirect/$" => "http://localhost:2048/" )
+url.rewrite = ( "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1",
+ "^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1" )
+
expire.url = ( "/expire/access" => "access 2 hours",
"/expire/modification" => "access plus 1 seconds 2 minutes")