--- orig/lighttpd-1.4.9/tests/mod-compress.t 2005-10-04 11:23:18.000000000 +0200 +++ lighttpd-1.4.9/tests/mod-compress.t 2006-02-10 19:41:53.000000000 +0100 @@ -8,7 +8,7 @@ use strict; use IO::Socket; -use Test::More tests => 9; +use Test::More tests => 11; use LightyTest; my $tf = LightyTest->new(); @@ -77,4 +77,21 @@ $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', '+Content-Encoding' => '', 'Content-Type' => "text/plain" } ]; ok($tf->handle_http($t) == 0, 'Content-Type is from the original file'); +$t->{REQUEST} = ( <{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', '+Content-Encoding' => '', 'Content-Type' => "text/plain" } ]; +ok($tf->handle_http($t) == 0, 'Cache content delivered from subdirectory'); + +$t->{REQUEST} = ( <{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', '+Content-Encoding' => '', 'Content-Type' => "text/plain" } ]; +ok($tf->handle_http($t) == 0, 'Cache content delivered from aliased subdirectory'); + + ok($tf->stop_proc == 0, "Stopping lighttpd"); --- orig/lighttpd-1.4.9/tests/lighttpd.conf 2005-10-05 10:50:51.000000000 +0200 +++ lighttpd-1.4.9/tests/lighttpd.conf 2006-02-10 19:45:57.000000000 +0100 @@ -119,6 +119,8 @@ url.access-deny = ( "~", ".inc") +alias.url = ( "/aliasdir/" => "@SRCDIR@/tmp/lighttpd/servers/www.example.org/pages/indexfile/" ) + url.rewrite = ( "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1", "^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1" ) diff --exclude Makefile -uNr orig/lighttpd-1.4.9/tests/docroot/www/indexfile/data.txt lighttpd-1.4.9/tests/docroot/www/indexfile/data.txt --- orig/lighttpd-1.4.9/tests/docroot/www/indexfile/data.txt 1970-01-01 01:00:00.000000000 +0100 +++ lighttpd-1.4.9/tests/docroot/www/indexfile/data.txt 2006-02-10 19:00:08.000000000 +0100 @@ -0,0 +1 @@ +subdir diff --exclude Makefile -uNr orig/lighttpd-1.4.9/tests/docroot/www/indexfile/Makefile.am lighttpd-1.4.9/tests/docroot/www/indexfile/Makefile.am --- orig/lighttpd-1.4.9/tests/docroot/www/indexfile/Makefile.am 2005-08-11 00:26:55.000000000 +0200 +++ lighttpd-1.4.9/tests/docroot/www/indexfile/Makefile.am 2006-02-10 19:32:44.000000000 +0100 @@ -1 +1 @@ -EXTRA_DIST=index.php return-404.php rewrite.php +EXTRA_DIST=index.php return-404.php rewrite.php data.txt