RunApp::Apache(3pm)

RunApp::Apache3pm

Apache control for runapp

Usage

 use RunApp::Apache;
 $apache = RunApp::Apache->new
            (root => "/tmp/apache_run",
             report => 1,
             apxs => '/usr/local/sbin/apxs',
             # httpd => '/usr/local/sbin/httpd',
             required_modules => ["log_config", "alias", "perl", "mime"],
             config_block => q{
 [% IF AP_VERSION == 2 %]
  eval { use Apache2 };
  eval { use Apache::compat };
 [% END %]
 <Location /myapp>
  AllowOverride None
  SetHandler perl-script
  PerlSetVar approot [% cwd %]
  PerlHandler MyApp
  Options +ExecCGI
 </Location>
 });

Overview

This is the class for defining a apache web server to be used in RunApp.

Constructor

new (%arg)

Required arg:

root

The root for the apache instance.

apxs
httpd

If "apxs" is specified, "httpd" will be derived from it.

required_modules

A arrayref to the apache modules required.

config_block

The config block that will be the extra block in the template used by RunApp::Template::Apache.

CTL

The class for handling apachectl. The default is RunApp::Control::AppControl. You can also use RunApp::Control::ApacheCtl.

CONF

The class for handling apache config. The default is RunApp::Template::Apache. It is used in the "build" phase of RunApp

Releases

9 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0–7
  2. 8–10
  3. 11
  4. 12–13

Authors

Chia-liang Kao <[email protected]>

Refactored from works by Leon Brocard <[email protected]> and Tom Insam <[email protected]>.

From librunapp-perl 0.13-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.