whitespace cleanup
[catagits/Catalyst-Runtime.git] / t / conf / extra.conf.in
CommitLineData
690ee036 1<IfDefine !APACHE1>
2 # Needed to pass some %2F tests
3 AllowEncodedSlashes on
4</IfDefine>
5
58f5682a 6# CGI
7<IfModule @CGI_MODULE@>
ffd92403 8 ScriptAlias /cgi/ @ServerRoot@/tmp/TestApp/script/testapp_cgi.pl/
0bcb98c7 9
10 # REDIRECT_URL test
11 <IfModule mod_rewrite.c>
0ef99f8c 12 # Fix trailing slash on /cgi
13 # one CGI test will fail if you don't have mod_rewrite enabled
14 RewriteEngine on
15 RewriteRule /cgi$ /cgi/ [PT]
88e5a8b0 16
25f55123 17 # Pass-through Authorization header for CGI/FastCGI
18 RewriteCond %{HTTP:Authorization} ^(.+)
19 RewriteRule ^(.*)$ $1 [E=HTTP_AUTHORIZATION:%1,PT]
0ef99f8c 20
0bcb98c7 21 <Location /rewrite>
22 RewriteEngine on
0ef99f8c 23 RewriteRule /rewrite$ /rewrite/ [PT]
0bcb98c7 24 RewriteRule /rewrite/(.*) /cgi/$1
25 </Location>
26 </IfModule>
58f5682a 27</IfModule>
28
29# FastCGI
30<IfModule mod_fastcgi.c>
ffd92403 31 FastCgiIpcDir @ServerRoot@/tmp/tmp
0bcb98c7 32 FastCgiServer @ServerRoot@/tmp/TestApp/script/testapp_fastcgi.pl -idle-timeout 300 -processes 1
62fdfd9c 33
34 # Test at a non-root location
35 ScriptAlias /fastcgi/deep/path/ @ServerRoot@/tmp/TestApp/script/testapp_fastcgi.pl/
36
37 # Test at root
38 ScriptAlias / @ServerRoot@/tmp/TestApp/script/testapp_fastcgi.pl/
39
40 <IfModule mod_rewrite.c>
55a7d985 41 # Fix trailing slash
62fdfd9c 42 RewriteEngine on
43 RewriteRule /fastcgi/deep/path$ /fastcgi/deep/path/ [PT]
44 </IfModule>
58f5682a 45</IfModule>