RunApp
view release on metacpan or search on metacpan
lib/RunApp/Apache.pm view on Meta::CPAN
mkpath [catfile ($self->{root}, 'conf'),
$conf->{logs}] or die $!
unless -d $self->{root};
my $apacheconf = {
MinSpareServers => 2,
MaxSpareServers => 2,
StartServers => 2,
MaxClients => 100,
MaxRequestsPerChild => 100,
user => (getpwuid($>) || ''),
group => (getgrgid($)) || ''),
};
# final tweak
my $combined = {%$apacheconf, %$self, %$conf, %$info};
# they don't like multi-request in a process.
$combined->{MaxRequestsPerChild} = 1 if $combined->{cover} || $combined->{profiler};
$self->SUPER::build ($combined);
my $mimefile = $info->{TYPES_CONFIG_FILE} || $info->{AP_TYPES_CONFIG_FILE};
$mimefile = catfile($info->{HTTPD_ROOT}, $mimefile)
( run in 0.241 second using v1.01-cache-2.11-cpan-8d75d55dd25 )