update distar url
[catagits/Catalyst-Runtime.git] / t / conf / extra.conf.in
1 <IfDefine !APACHE1>
2     # Needed to pass some %2F tests
3     AllowEncodedSlashes on
4 </IfDefine>
5
6 # CGI
7 <IfModule @CGI_MODULE@>
8     ScriptAlias /cgi/ @ServerRoot@/tmp/TestApp/script/testapp_cgi.pl/
9
10     # REDIRECT_URL test
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
14         RewriteEngine on
15         RewriteRule /cgi$ /cgi/ [PT]
16
17         # Pass-through Authorization header for CGI/FastCGI
18         RewriteCond %{HTTP:Authorization} ^(.+)
19         RewriteRule ^(.*)$ $1 [E=HTTP_AUTHORIZATION:%1,PT]
20
21         <Location /rewrite>
22             RewriteEngine on
23             RewriteRule /rewrite$ /rewrite/ [PT]
24             RewriteRule /rewrite/(.*) /cgi/$1
25         </Location>
26     </IfModule>
27 </IfModule>
28
29 # FastCGI
30 <IfModule mod_fastcgi.c>
31     FastCgiIpcDir @ServerRoot@/tmp/tmp
32     FastCgiServer @ServerRoot@/tmp/TestApp/script/testapp_fastcgi.pl -idle-timeout 300 -processes 1
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>
41         # Fix trailing slash
42         RewriteEngine on
43         RewriteRule /fastcgi/deep/path$ /fastcgi/deep/path/ [PT]
44     </IfModule>
45 </IfModule>