/usr/share/doc/libapache2-mod-perl2-doc/docs/2.0/api/ModPerl/PerlRun.html is in libapache2-mod-perl2-doc 2.0.8+httpd24-r1449661-6ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | <?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>
<body style="background-color: white">
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#Synopsis">Synopsis</a></li>
<li><a href="#Description">Description</a></li>
<li><a href="#Special-Blocks">Special Blocks</a>
<ul>
<li><a href="#BEGIN-Blocks">BEGIN Blocks</a></li>
<li><a href="#CHECK-and-INIT-Blocks">CHECK and INIT Blocks</a></li>
<li><a href="#END-Blocks">END Blocks</a></li>
</ul>
</li>
<li><a href="#Authors">Authors</a></li>
<li><a href="#See-Also">See Also</a></li>
</ul>
<h1 id="NAME">NAME</h1>
<p>ModPerl::PerlRun - Run unaltered CGI scripts under mod_perl</p>
<h1 id="Synopsis">Synopsis</h1>
<pre><code> # 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></code></pre>
<h1 id="Description">Description</h1>
<p>META: document that for now we don't chdir() into the script's dir, because it affects the whole process under threads. <code><a>ModPerl::PerlRunPrefork</a></code> should be used by those who run only under prefork MPM.</p>
<h1 id="Special-Blocks">Special Blocks</h1>
<h2 id="BEGIN-Blocks"><code>BEGIN</code> Blocks</h2>
<p>When running under the <code>ModPerl::PerlRun</code> handler <code>BEGIN</code> blocks behave as follows:</p>
<ul>
<li><p><code>BEGIN</code> blocks defined in scripts running under the <code>ModPerl::PerlRun</code> handler are executed on each and every request.</p>
</li>
<li><p><code>BEGIN</code> blocks defined in modules loaded from scripts running under <code>ModPerl::PerlRun</code> (and which weren't already loaded prior to the request) are executed on each and every request only if those modules declare no package. If a package is declared <code>BEGIN</code> blocks will be run only the first time each module is loaded, since those modules don't get reloaded on subsequent requests.</p>
</li>
</ul>
<p>See also <a><code>BEGIN</code> blocks in mod_perl handlers</a>.</p>
<h2 id="CHECK-and-INIT-Blocks"><code>CHECK</code> and <code>INIT</code> Blocks</h2>
<p>Same as normal <a>mod_perl handlers</a>.</p>
<h2 id="END-Blocks"><code>END</code> Blocks</h2>
<p>Same as <code><a>ModPerl::Registry</a></code>.</p>
<h1 id="Authors">Authors</h1>
<p>Doug MacEachern</p>
<p>Stas Bekman</p>
<h1 id="See-Also">See Also</h1>
<p><code><a>ModPerl::RegistryCooker</a></code> and <code><a>ModPerl::Registry</a></code>.</p>
</body>
</html>
|