1 package FS::part_export::apache;
3 use vars qw(@ISA %info);
5 use FS::part_export::null;
7 @ISA = qw(FS::part_export::null);
9 tie my %options, 'Tie::IxHash',
10 'user' => { label=>'Remote username', default=>'root' },
11 'httpd_conf' => { label=>'httpd.conf snippet location',
12 default=>'/etc/apache/httpd-freeside.conf', },
13 'restart' => { label=>'Apache restart command',
14 default=>'apachectl graceful',
20 <VirtualHost $zone> #generic
21 #<VirtualHost ip.addr> #preferred, http://httpd.apache.org/docs/dns-caveats.html
22 DocumentRoot /var/www/$zone
26 #LargeFileLimit 4096 12288
32 'template_inactive' => {
33 label => 'Template (when suspended)',
36 <VirtualHost $zone> #generic
37 #<VirtualHost ip.addr> #preferred, http://httpd.apache.org/docs/dns-caveats.html
38 DocumentRoot /var/www/$zone
42 #LargeFileLimit 4096 12288
53 'desc' => 'Export an Apache httpd.conf file snippet.',
54 'options' => \%options,
56 Batch export of an httpd.conf snippet from a template. Typically used with
57 something like <code>Include /etc/apache/httpd-freeside.conf</code> in
58 httpd.conf. <a href="http://search.cpan.org/dist/File-Rsync">File::Rsync</a>
59 must be installed. Run bin/apache.export to export the files.