2 # Needed to pass some %2F tests
7 <IfModule @CGI_MODULE@>
8 ScriptAlias /cgi/ @ServerRoot@/tmp/TestApp/script/testapp_cgi.pl/
11 <IfModule mod_rewrite.c>
12 # Fix trailing slash on /cgi
13 # one CGI test will fail if you don't have mod_rewrite enabled
15 RewriteRule /cgi$ /cgi/ [PT]
17 # Pass-through Authorization header for CGI/FastCGI
18 RewriteCond %{HTTP:Authorization} ^(.+)
19 RewriteRule ^(.*)$ $1 [E=HTTP_AUTHORIZATION:%1,PT]
23 RewriteRule /rewrite$ /rewrite/ [PT]
24 RewriteRule /rewrite/(.*) /cgi/$1
30 <IfModule mod_fastcgi.c>
31 FastCgiIpcDir @ServerRoot@/tmp/tmp
32 FastCgiServer @ServerRoot@/tmp/TestApp/script/testapp_fastcgi.pl -idle-timeout 300 -processes 1
34 # Test at a non-root location
35 ScriptAlias /fastcgi/deep/path/ @ServerRoot@/tmp/TestApp/script/testapp_fastcgi.pl/
38 ScriptAlias / @ServerRoot@/tmp/TestApp/script/testapp_fastcgi.pl/
40 <IfModule mod_rewrite.c>
43 RewriteRule /fastcgi/deep/path$ /fastcgi/deep/path/ [PT]