Add www-apache/mod_perl from ::gentoo.
[mjo-overlay.git] / www-apache / mod_perl / files / 2.0.3 / 75_mod_perl.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 Require host localhost
18 </Location>
19
20 <Directory /home/*/public_html/perl>
21 SetHandler perl-script
22 PerlResponseHandler ModPerl::PerlRun
23 PerlOptions +ParseHeaders
24
25 # Clear all existing options and only permit cgi.
26 Options ExecCGI
27 </Directory>
28
29 # set Apache::Registry Mode for /perl Alias
30 <Location /perl/*.pl>
31 SetHandler perl-script
32 PerlResponseHandler ModPerl::Registry
33 PerlSendHeader On
34
35 # Clear all existing options and only permit cgi.
36 Options ExecCGI
37
38 Require all granted
39 </Location>
40
41 # set Apache::PerlRun Mode for /cgi-perl Alias
42 <Location /cgi-perl/*.pl>
43 SetHandler perl-script
44 PerlResponseHandler ModPerl::PerlRun
45 PerlSendHeader On
46
47 # Clear all existing options and only permit cgi.
48 Options ExecCGI
49
50 Require all granted
51 </Location>
52 </IfDefine>
53
54 # vim: ts=4 filetype=apache