Baldrick::Trousers

From CunningPlans

Jump to: navigation, search

Contents

[edit] package Baldrick::Trousers

Baldrick::Trousers is the module that receives requests in a mod_perl environment. It is normally not included when one does 'use Baldrick::Baldrick', thus it does not exist unless invoked by Apache.

The name was inspired by the trousers of BlackAdder's Baldrick, which are rarely if ever changed. Baldrick::Trousers is often the longest-lived object in a Baldrick installation, surviving through the life of multiple user requests, servicing each of them in turn.

[edit] Usage

in Apache httpd.conf:

<Location /my/app/>

   SetHandler perl-script
   PerlSetEnv BALDRICK_WORKDIR /www/ostrichesonline.com/shop/
   PerlSetEnv BALDRICK_CONFIG_PATH /www/ostrichesonline.com/shop/etc
   PerlSetEnv BALDRICK_CONFIG_FILE baldrick.cfg
   PerlResponseHandler Baldrick::Trousers
   Options +ExecCGI
   PerlSendHeader On
   Allow from all

</Location>


[edit] Interface

(this section is incomplete)

[edit] History

Personal tools