1
package TestVhost::config;
3
# Test whether under threaded mpms (and not) a vhost with 'PerlOptions
4
# +Parent', can run <Perl> sections, which call into config again via
8
use warnings FATAL => 'all';
13
use Apache::RequestUtil ();
16
use File::Spec::Functions qw(canonpath catdir);
18
use Apache::Const -compile => 'OK';
20
# using a different from 'handler' name on purpose, to make sure
21
# that the module is preloaded at the server startup
28
my $expected = $r->document_root;
29
my $received = $r->dir_config->get('DocumentRootCheck');
30
ok t_cmp(canonpath($expected), canonpath($received), "DocumentRoot");
39
<VirtualHost TestVhost::config>
40
DocumentRoot @documentroot@/vhost
42
<IfDefine PERL_USEITHREADS>
43
# a new interpreter pool
51
# use test system's @INC
52
PerlSwitches -I@serverroot@
55
PerlRequire "@serverroot@/conf/modperl_inc.pl"
57
# private to this vhost stuff
58
PerlRequire "@documentroot@/vhost/startup.pl"
60
# <Location /TestVhost__config> container is added via add_config
61
# in t/htdocs/vhost/startup.pl