package RunApp::Template::Apache; use base qw(RunApp::Template); use strict; sub get_template { my ($self, $conf) = @_; Template->new({ ABSOLUTE => 1, DEBUG_UNDEF => 1, BLOCKS => { extra => $conf->{config_block}, }, VARIABLES => { module_symbol => sub { $_ = shift; if ($conf->{AP_VERSION} == 1) { if ($_ eq 'log_config') { $_ = 'config_log'; } elsif ($_ eq 'actions') { $_ = 'action'; } } return $_ . '_module'; }, module_file => sub { $_ = shift; if ($conf->{AP_VERSION} == 1) { if ($_ eq 'perl' || $_ eq 'proxy' || $_ eq 'php3' || $_ eq "ssl") { return "lib$_.so"; } } return "mod_$_.so" }, } }); } =head1 NAME RunApp::Apache - Apache control from RunApp =head1 SYNOPSIS See RunApp::Apache =head1 DESCRIPTION The class provides the default template for apache configuration. It uses L