Supplied with the mod_perl distribution. See the module manpage for more information.
Apache::PerlSections configures Apache entirely in Perl.
Covered in Chapter 4.
Supplied with the mod_perl distribution. See the module manpage for more information.
The 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.
This 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.
This 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.
Copyright © 2003 O'Reilly & Associates. All rights reserved.