GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Apache::Config::Preproc::ifmodule(3) User Contributed Perl Documentation Apache::Config::Preproc::ifmodule(3)

Apache::Config::Preproc::ifmodule - expand IfModule statements

    $x = new Apache::Config::Preproc '/path/to/httpd.conf',
               -expand => [ qw(ifmodule) ];

    $x = new Apache::Config::Preproc '/path/to/httpd.conf',
               -expand => [
                   { ifmodule => { probe => [ '/usr/sbin/httpd' ] } }
               ];

Expands the <IfModule> statements in the Apache configuration parse tree. If the statement's argument evaluates to true, it is replaced by the statements inside it. Otherwise, it is removed. Nested statements are allowed. The LoadModule statements are examined in order to evaluate the argument.

The following constructor arguments are understood:

preloaded => LISTREF
Supplies a list of preloaded module names. You can use this argument to pass a list of modules linked statically in your version of httpd.
probe => LISTREF | 1
Provides an alternative way of handling statically linked Apache modules. If LISTREF is given, each its element is treated as the pathname of the Apache httpd binary. The first of them that is found is run with the -l option to list the statically linked modules, and its output is parsed.

The argument

    probe => 1
    

is a shorthand for

    probe => [qw(/usr/sbin/httpd /usr/sbin/apache2)]
    

Apache::Config::Preproc
2020-04-01 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.