[ Team LiB ] |
B.4 Server Configuration ModulesB.4.1 Apache::ModuleConfig—Interface to Configuration APISupplied with the mod_perl distribution. See the module manpage for more information. B.4.2 Apache::PerlSections—Utilities for Working with <Perl> SectionsApache::PerlSections configures Apache entirely in Perl. Covered in Chapter 4. Supplied with the mod_perl distribution. See the module manpage for more information. B.4.3 Apache::httpd_conf—Generate an httpd.conf FileThe Apache::httpd_conf module will generate a tiny httpd.conf file, which pulls itself back in via a <Perl> section. Any additional arguments passed to the write( ) method will be added to the generated httpd.conf file and will override those defaults set in the <Perl> section. This module is handy mostly for starting httpd servers to test mod_perl scripts and modules. Supplied with the mod_perl distribution. See the module manpage for more information. B.4.4 Apache::src—Methods for Locating and Parsing Bits of Apache Source CodeThis module provides methods for locating and parsing bits of Apache source code. For example: my $src = Apache::src->new; my $v = $src->httpd_version; returns the server version. And: my $dir = $src->dir; -d $dir or die "can't stat $dir $!\n"; returns the top level directory where source files are located and then tests whether it can read it. The main( ) method will return the location of httpd.h: -e join "/", $src->main, "httpd.h" or die "can't stat httpd.h\n"; Other methods are available from this module. Supplied with the mod_perl distribution. See the module manpage for more information. B.4.5 Apache::ConfigFile—Parse an Apache-Style httpd.conf Configuration FileThis module parses httpd.conf, or any compatible configuration file, and provides methods for accessing the values from the parsed file. Available from CPAN. See the module manpage for more information. |
[ Team LiB ] |