X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fconf%2Fextra.conf.in;h=cb8c13be484a44c8b7f829f032603a7d3715fb7c;hb=62fdfd9c38f9a41c49841e3de3db9a87a3f33f11;hp=fff041dd7f1df079def37f69686be4c6dc72eec2;hpb=47c97b64103173bede56e5c773a2e9c3ae028851;p=catagits%2FCatalyst-Runtime.git diff --git a/t/conf/extra.conf.in b/t/conf/extra.conf.in index fff041d..cb8c13b 100644 --- a/t/conf/extra.conf.in +++ b/t/conf/extra.conf.in @@ -1,11 +1,22 @@ + + # Needed to pass some %2F tests + AllowEncodedSlashes on + + # CGI ScriptAlias /cgi/ @ServerRoot@/tmp/TestApp/script/testapp_cgi.pl/ # REDIRECT_URL test + # Fix trailing slash on /cgi + # one CGI test will fail if you don't have mod_rewrite enabled + RewriteEngine on + RewriteRule /cgi$ /cgi/ [PT] + RewriteEngine on + RewriteRule /rewrite$ /rewrite/ [PT] RewriteRule /rewrite/(.*) /cgi/$1 @@ -15,5 +26,16 @@ FastCgiIpcDir @ServerRoot@/tmp/tmp FastCgiServer @ServerRoot@/tmp/TestApp/script/testapp_fastcgi.pl -idle-timeout 300 -processes 1 - ScriptAlias /fastcgi/ @ServerRoot@/tmp/TestApp/script/testapp_fastcgi.pl/ + + # Test at a non-root location + ScriptAlias /fastcgi/deep/path/ @ServerRoot@/tmp/TestApp/script/testapp_fastcgi.pl/ + + # Test at root + ScriptAlias / @ServerRoot@/tmp/TestApp/script/testapp_fastcgi.pl/ + + + # Fix trailing slas + RewriteEngine on + RewriteRule /fastcgi/deep/path$ /fastcgi/deep/path/ [PT] +