=head1 NAME Apache::PerlSections - Utilities for work with Perl sections =head1 Synopsis use Apache::PerlSections (); =head1 Description It is possible to configure you server entirely in Perl using CPerlE> sections in I. This module is here to help you with such a task. =head1 Methods =over 4 =item dump This method will dump out all the configuration variables mod_perl will be feeding to the apache config gears. The output is suitable to read back in via C. Example: use Apache::PerlSections (); $Port = 8529; $Location{"/perl"} = { SetHandler => "perl-script", PerlHandler => "Apache::Registry", Options => "ExecCGI", }; @DirectoryIndex = qw(index.htm index.html); $VirtualHost{"www.foo.com"} = { DocumentRoot => "/tmp/docs", ErrorLog => "/dev/null", Location => { "/" => { Allowoverride => 'All', Order => 'deny,allow', Deny => 'from all', Allow => 'from foo.com', }, }, }; print Apache::PerlSections->dump; This will print something like this: package Apache::ReadConfig; #scalars: $Port = 8529; #arrays: @DirectoryIndex = ( 'index.htm', 'index.html' ); #hashes: %Location = ( '/perl' => { PerlHandler => 'Apache::Registry', SetHandler => 'perl-script', Options => 'ExecCGI' } ); %VirtualHost = ( 'www.foo.com' => { Location => { '/' => { Deny => 'from all', Order => 'deny,allow', Allow => 'from foo.com', Allowoverride => 'All' } }, DocumentRoot => '/tmp/docs', ErrorLog => '/dev/null' } ); 1; __END__ =item store This method will call the C method, writing the output to a file, suitable to be pulled in via C. Example: Apache::PerlSections->store("httpd_config.pl"); require 'httpd_config.pl'; =back =head1 See Also mod_perl, C, C =head1 Maintainers Maintainer is the person(s) you should contact with updates, corrections and patches. =over =item * The L =back =head1 Authors =over =item * Doug MacEachern =back Only the major authors are listed above. For contributors see the Changes file. =cut