X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fconf%2Fextra.conf.in;h=5445db928f64bb39c106280b49e017929c141a39;hb=5dd46e24eedec447bdfbc4061ed683b5a17a7b0c;hp=27a7b5f97480ccd9c18bddc1f40c66b5a3af3e87;hpb=690ee03644105e56c9a44310a5977209a19dce02;p=catagits%2FCatalyst-Runtime.git diff --git a/t/conf/extra.conf.in b/t/conf/extra.conf.in index 27a7b5f..5445db9 100644 --- a/t/conf/extra.conf.in +++ b/t/conf/extra.conf.in @@ -9,8 +9,18 @@ # 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] + + # Pass-through Authorization header for CGI/FastCGI + RewriteCond %{HTTP:Authorization} ^(.+) + RewriteRule ^(.*)$ $1 [E=HTTP_AUTHORIZATION:%1,PT] + RewriteEngine on + RewriteRule /rewrite$ /rewrite/ [PT] RewriteRule /rewrite/(.*) /cgi/$1 @@ -20,5 +30,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 slash + RewriteEngine on + RewriteRule /fastcgi/deep/path$ /fastcgi/deep/path/ [PT] +