Add www-apache/mod_perl from ::gentoo.
[mjo-overlay.git] / www-apache / mod_perl / files / 2.0.3 / 75_mod_perl.2.2.conf
1 <IfDefine PERL>
2 LoadModule perl_module modules/mod_perl.so
3
4 #PerlTrace all
5 PerlRequire "/etc/apache2/modules.d/apache2-mod_perl-startup.pl"
6 PerlModule ModPerl::Registry
7
8 # Provide two aliases to the same cgi-bin directory, to see the effects of the
9 # 2 different mod_perl modes for Apache2::Registry Mode
10 Alias /perl/ /var/www/localhost/perl/
11 # for Apache2::Perlrun Mode
12 Alias /cgi-perl/ /var/www/localhost/perl/
13
14 <Location /perl-status>
15 SetHandler perl-script
16 PerlResponseHandler Apache2::Status
17 Order deny,allow
18 Deny from all
19 Allow from 127.0.0.1
20 </Location>
21
22 <Directory /home/*/public_html/perl>
23 SetHandler perl-script
24 PerlResponseHandler ModPerl::PerlRun
25 Options -Indexes ExecCGI
26 PerlOptions +ParseHeaders
27 </Directory>
28
29 # set Apache::Registry Mode for /perl Alias
30 <Location /perl/*.pl>
31 SetHandler perl-script
32 PerlResponseHandler ModPerl::Registry
33 Options -Indexes ExecCGI
34 PerlSendHeader On
35 Order allow,deny
36 Allow from all
37 </Location>
38
39 # set Apache::PerlRun Mode for /cgi-perl Alias
40 <Location /cgi-perl/*.pl>
41 SetHandler perl-script
42 PerlResponseHandler ModPerl::PerlRun
43 Options -Indexes ExecCGI
44 PerlSendHeader On
45 Order allow,deny
46 Allow from all
47 </Location>
48 </IfDefine>
49
50 # vim: ts=4 filetype=apache