3b64074ddfd3fc6b37d72d708f830c498bca2c3b
[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         <Location /rewrite>
18             RewriteEngine on
19             RewriteRule /rewrite$ /rewrite/ [PT]
20             RewriteRule /rewrite/(.*) /cgi/$1
21         </Location>
22     </IfModule>
23 </IfModule>
24
25 # FastCGI
26 <IfModule mod_fastcgi.c>
27     FastCgiIpcDir @ServerRoot@/tmp/tmp
28     FastCgiServer @ServerRoot@/tmp/TestApp/script/testapp_fastcgi.pl -idle-timeout 300 -processes 1
29
30     # Test at a non-root location
31     ScriptAlias /fastcgi/deep/path/ @ServerRoot@/tmp/TestApp/script/testapp_fastcgi.pl/
32
33     # Test at root
34     ScriptAlias / @ServerRoot@/tmp/TestApp/script/testapp_fastcgi.pl/
35
36     <IfModule mod_rewrite.c>
37         # Fix trailing slash
38         RewriteEngine on
39         RewriteRule /fastcgi/deep/path$ /fastcgi/deep/path/ [PT]
40     </IfModule>
41 </IfModule>