1# needed to test $r->psignature
2ServerSignature On
3
4# The following tests require more than one interpreter during the
5# same request:
6#
7# perls  Test
8# -----------
9#     2  t/modules/apache_status
10#     2  t/filter/both_str_req_proxy
11#     2  t/modules/proxy
12#
13# the following tests will clone a new perl interpreter via
14# ithreads.pm regardless of how many interpreters mod_perl has:
15#
16# t/perl/ithreads
17# t/perl/ithreads2
18#
19# therefore we need at most 2 interpreters, the missing one loading on
20# demand, but we start only with 1, so the startup is quick,
21# especially since we immediately restart. We also want MaxSpare to be
22# the same as Max, since we have more than one test that requires more
23# than one interpreter, so don't waste time to kill and start a new
24# one later -- keep it around once spawned
25#
26# Adjust PerlInterpMax and PerlInterpMaxSpare if the requirements change
27<IfDefine PERL_USEITHREADS>
28    PerlInterpStart         1
29    PerlInterpMax           2
30    PerlInterpMinSpare      1
31    PerlInterpMaxSpare      2
32</IfDefine>
33
34# make sure that we test under Taint and warnings mode enabled
35PerlSwitches -wT
36
37PerlChildExitHandler ModPerl::Test::exit_handler
38PerlModule TestExit::FromPerlModule
39
40#for t/modules/include.t
41<Directory @ServerRoot@/htdocs/includes>
42    <IfModule mod_mime.c>
43        AddOutputFilter INCLUDES .shtml
44    </IfModule>
45    # #virtual include of a script that sets content type is
46    # considered the same as #cmd by mod_include,
47    # therefore can't use IncludesNOEXEC here
48    Options Indexes FollowSymLinks Includes
49</Directory>
50
51<Directory @ServerRoot@/htdocs/includes-registry>
52    SetHandler perl-script
53    Options +ExecCGI +IncludesNoExec
54    PerlResponseHandler ModPerl::Registry
55    PerlOptions +ParseHeaders +GlobalRequest
56    <IfModule mod_mime.c>
57        AddOutputFilter INCLUDES .spl
58    </IfModule>
59</Directory>
60
61<IfModule mod_perl.c>
62    <IfDefine !MODPERL2>
63        # This should not be touched, since we're running with mod_perl 2
64        PerlModule Doesnt::Exist
65    </IfDefine>
66</IfModule>
67
68# <sandbox-friendly>
69# keep everything self-contained, to avoid problems with sandboxes
70# which break when things try to run off /tmp
71<IfModule mod_cgid.c>
72    ScriptSock logs/cgisock
73</IfModule>
74<IfModule mod_env.c>
75    SetEnv TMPDIR @t_logs@
76
77    # pass ld_library_path for non standard lib locations
78    # [rt.cpan.org #66085]
79    PassEnv LD_LIBRARY_PATH
80</IfModule>
81# </sandbox-friendly>
82
83<Location /status/perl>
84#    PerlSetVar StatusOptionsAll On
85#    PerlSetVar StatusDumper On
86#    PerlSetVar StatusPeek On
87#    PerlSetVar StatusLexInfo On
88#    PerlSetVar StatusDeparse On
89#    PerlSetVar StatusDeparseOptions "-p -sC"
90    PerlSetVar StatusTerse On
91#    PerlSetVar StatusTerseSize On
92#    PerlSetVar StatusTerseSizeMainSummary On
93    SetHandler modperl
94    PerlResponseHandler Apache2::Status
95</Location>
96
97# for TestApache::util
98PerlPassEnv LC_CTYPE
99PerlPassEnv LC_TIME
100
101# for TestCompat::apache_file
102PerlPassEnv TMPDIR
103PerlPassEnv TEMP
104
105# see t/filter/out_apache.t
106<VirtualHost filter_out_apache>
107    <IfModule mod_include.c>
108        # this filter is on purpose configured outside the Location
109        PerlSetOutputFilter INCLUDES
110        <Location />
111            Options +Includes
112        </Location>
113    </IfModule>
114</VirtualHost>
115