ModPerl::PerlRun - Run unaltered CGI scripts under mod_perl


mod_perl documentation  | view source Contained in the mod_perl distribution.

Index


NAME

Top

ModPerl::PerlRun - Run unaltered CGI scripts under mod_perl

Synopsis

Top

  # httpd.conf
  PerlModule ModPerl::PerlRun
  Alias /perl-run/ /home/httpd/perl/
  <Location /perl-run>
      SetHandler perl-script
      PerlResponseHandler ModPerl::PerlRun
      PerlOptions +ParseHeaders
      Options +ExecCGI
  </Location>




Description

Top

META: document that for now we don't chdir() into the script's dir, because it affects the whole process under threads. ModPerl::PerlRunPrefork (docs::2.0::api::ModPerl::PerlRunPrefork) should be used by those who run only under prefork MPM.

Special Blocks

Top

BEGIN Blocks

When running under the ModPerl::PerlRun handler BEGIN blocks behave as follows:

See also BEGIN blocks in mod_perl handlers|docs::2.0::user::coding::coding/C_BEGIN__Blocks.

CHECK and INIT Blocks

Same as normal mod_perl handlers (C_CHECK__and_C_INIT__Blocks in docs::2.0::user::coding::coding).

END Blocks

Same as ModPerl::Registry (C_BEGIN__Blocks in docs::2.0::api::ModPerl::Registry).

Authors

Top

Doug MacEachern

Stas Bekman

See Also

Top

ModPerl::RegistryCooker (docs::2.0::api::ModPerl::RegistryCooker) and ModPerl::Registry (docs::2.0::api::ModPerl::Registry).


mod_perl documentation  | view source Contained in the mod_perl distribution.