summaryrefslogtreecommitdiff
path: root/network/mod_perl/mod_perl.conf
blob: 1705c83e1817ee223a97be228be58e7770b3966d (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
32
#
# 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/www/htdocs/perl/
#<Location /perl/>
#    SetHandler perl-script
#    PerlResponseHandler ModPerl::Registry
#    PerlOptions +ParseHeaders
#    Options +ExecCGI
#    Order allow,deny
#    Allow from all 
#</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>