X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Foptional_lighttpd-fastcgi-non-root.t;h=f27ee2888292373052a36b83743d33fc126ef01e;hb=8c25d85b1c79a9671c0e81e65c5ff5c112e8399f;hp=fd56d6cea445e35bab0cbf184d48c946fea0b4ce;hpb=0787198669dd18050155c7cddd562d7da4537480;p=catagits%2FCatalyst-Runtime.git diff --git a/t/optional_lighttpd-fastcgi-non-root.t b/t/optional_lighttpd-fastcgi-non-root.t index fd56d6c..f27ee28 100644 --- a/t/optional_lighttpd-fastcgi-non-root.t +++ b/t/optional_lighttpd-fastcgi-non-root.t @@ -56,6 +56,7 @@ my $conf = <<"END"; server.modules = ( "mod_access", "mod_fastcgi", + "mod_rewrite", "mod_accesslog" ) @@ -67,16 +68,23 @@ accesslog.filename = "$docroot/access.log" server.bind = "127.0.0.1" server.port = $port +# Work around inability to hit http://localhost/deep/path +# without a trailing slash +url.rewrite = ( "deep/path\$" => "deep/path/" ) + # catalyst app specific fcgi setup fastcgi.server = ( "/deep/path" => ( "FastCgiTest" => ( - "socket" => "$docroot/test.socket", - "check-local" => "disable", - "bin-path" => "$docroot/TestApp/script/testapp_fastcgi.pl", - "min-procs" => 1, - "max-procs" => 1, - "idle-timeout" => 20 + "socket" => "$docroot/test.socket", + "check-local" => "disable", + "bin-path" => "$docroot/TestApp/script/testapp_fastcgi.pl", + "min-procs" => 1, + "max-procs" => 1, + "idle-timeout" => 20, + "bin-environment" => ( + "PERL5LIB" => "$docroot/../../lib" + ) ) ) )