The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

SYNOPSIS

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

    $x = new Apache::Config::Preproc '/path/to/httpd.conf',
                -expand => [
                    { include => { -server_root => $dir } }
                ];

DESCRIPTION

Processes Include and IncludeOptional statements and replaces them with the contents of the files supplied in their arguments. If the argument is not an absolute file name, it is searched in the server root directory. The latter is determined inspecting the ServerRoot statement. If this statement is absent, the current working directory is used. The -server_root constructor argument can be used to enforce a specific server root directory.