Apache-Config-Preproc
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
t/01include01.t view on Meta::CPAN
# Test include by globbing pattern
my $obj = new TestPreproc -expand => [qw(include)];
ok($obj->dump_raw, $obj->dump_expect);
__DATA__
!>httpd.conf
ServerType standalone
ServerRoot "$server_root"
Include conf.d/*.conf
PidFile logs/httpd.pid
!>conf.d/a.conf
Timeout 300
!>conf.d/b.conf
MaxKeepAliveRequests 100
!>conf.d/c
Other Statement
!>conf.d/z.conf
User apache
Group apache
!=
ServerType standalone
ServerRoot "$server_root"
Timeout 300
MaxKeepAliveRequests 100
User apache
Group apache
PidFile logs/httpd.pid
!$
t/01include02.t view on Meta::CPAN
__DATA__
!>httpd.conf
# Main configuration
ServerType standalone
ServerRoot "$server_root"
Include "level1.conf"
PidFile logs/httpd.pid
!>level1.conf
# First-level include file
Timeout 300
Include level2.conf
KeepAlive On
!>level2.conf
# Second-level include file
MaxKeepAliveRequests 100
KeepAliveTimeout 15
!=
# Main configuration
ServerType standalone
ServerRoot "$server_root"
# First-level include file
Timeout 300
# Second-level include file
MaxKeepAliveRequests 100
KeepAliveTimeout 15
KeepAlive On
PidFile logs/httpd.pid
!$
t/02incopt00.t view on Meta::CPAN
# Test IncludeOptional
my $obj = new TestPreproc '-compact';
ok($obj->dump_raw, $obj->dump_expect);
__DATA__
!>httpd.conf
ServerType standalone
ServerRoot "$server_root"
IncludeOptional conf.d/*.conf
PidFile logs/httpd.pid
!>conf.d/a.conf
Timeout 300
!>conf.d/b.conf
MaxKeepAliveRequests 100
!>conf.d/c
Other Statement
!>conf.d/z.conf
User apache
Group apache
!=
ServerType standalone
ServerRoot "$server_root"
Timeout 300
MaxKeepAliveRequests 100
User apache
Group apache
PidFile logs/httpd.pid
!$
t/99all00.t view on Meta::CPAN
Include conf.d/*.conf
Include mpm.conf
Include log.conf
Include vhost.conf
Include def.conf
<IfDefine FOO>
Listen 8080
</IfDefine>
Timeout 300
!>conf.d/load.conf
# Load prefork mpm
LoadModule mpm_prefork_module lib/httpd/modules/mod_mpm_prefork.so
# Load logging modules
LoadModule log_config_module lib/httpd/modules/mod_log_config.so
LoadModule logio_module lib/httpd/modules/mod_logio.so
!>conf.d/vhost.conf
<Macro vhost $name $port $dir>
<VirtualHost *:$port>
# Comment
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.692 second using v1.00-cache-2.02-grep-82fe00e-cpan-d29e8ade9f55 )