aboutsummaryrefslogtreecommitdiff
path: root/perl/mod_perl/mod_perl.conf
blob: 0ececcc1b0f59892d4610f54e266d9c14dcf866f (plain)
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
#
# mod_perl - Perl Interpreter for Apache2
#

# Load the Perl module:
LoadModule perl_module @baselibdir@/httpd/modules/mod_perl.so

# Define the files mod-perl's responsible for
AddHandler perl-script pl

# Set this if you want perl-scripts to be
# executed from only one directory
#Alias /perl/ /srv/httpd/htdocs/perl/
#<Location /perl/>
#    SetHandler perl-script
#    PerlResponseHandler ModPerl::Registry
#    PerlOptions +ParseHeaders
#    Options +ExecCGI
#    Require all granted
#</Location>

# Set this if you want perl-scripts to be
# executed from everywhere in the htdocs directory
# (default)
<Files *.pl>
     # mod_perl mode
     SetHandler perl-script
     PerlResponseHandler ModPerl::Registry
     PerlOptions +ParseHeaders
     Options +ExecCGI
</Files>