X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fconf%2Fextra.conf.in;h=48f241d1b6c4b1638a882286b5bcf78c30215b9d;hp=aaea7396d1f305668aed2c6b4418a5fbe52cbcec;hb=88e5a8b0c4d28e46b8ba6b6b9567063e57af9063;hpb=e701c5c61735b6aae5332b16522bbc800a626896 diff --git a/t/conf/extra.conf.in b/t/conf/extra.conf.in index aaea739..48f241d 100644 --- a/t/conf/extra.conf.in +++ b/t/conf/extra.conf.in @@ -1,11 +1,26 @@ + + # 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] + + # 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 @@ -15,6 +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/ - Alias /noslash @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] +