From a9f7841379c51901897c654283495a8dce4ddc98 Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Fri, 4 Mar 2005 18:38:46 +0000 Subject: [PATCH] 2 rewrite tests git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@92 152afb58-edef-0310-8abb-c4023f1b3aa9 --- tests/Makefile.am | 1 + tests/docroot/www/indexfile/Makefile.am | 2 +- tests/docroot/www/indexfile/rewrite.php | 3 +++ tests/lighttpd.conf | 3 +++ 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tests/docroot/www/indexfile/rewrite.php 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 @@ + 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")