Browse Source

2 rewrite tests

git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@92 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/release-1.3.13
Jan Kneschke 17 years ago
parent
commit
a9f7841379
  1. 1
      tests/Makefile.am
  2. 2
      tests/docroot/www/indexfile/Makefile.am
  3. 3
      tests/docroot/www/indexfile/rewrite.php
  4. 3
      tests/lighttpd.conf

1
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

2
tests/docroot/www/indexfile/Makefile.am

@ -1 +1 @@
EXTRA_DIST=index.php return-404.php
EXTRA_DIST=index.php return-404.php rewrite.php

3
tests/docroot/www/indexfile/rewrite.php

@ -0,0 +1,3 @@
<?php
print $_SERVER["QUERY_STRING"];
?>

3
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")

Loading…
Cancel
Save