1 |
slords |
1.1 |
# |
2 |
|
|
# Mod_perl incorporates a Perl interpreter into the Apache web server, |
3 |
|
|
# so that the Apache web server can directly execute Perl code. |
4 |
|
|
# Mod_perl links the Perl runtime library into the Apache web server |
5 |
|
|
# and provides an object-oriented Perl interface for Apache's C |
6 |
|
|
# language API. The end result is a quicker CGI script turnaround |
7 |
|
|
# process, since no external Perl interpreter has to be started. |
8 |
|
|
# |
9 |
|
|
|
10 |
|
|
LoadModule perl_module modules/mod_perl.so |
11 |
|
|
|
12 |
|
|
# Uncomment this line to globally enable warnings, which will be |
13 |
|
|
# written to the server's error log. Warnings should be enabled |
14 |
|
|
# during the development process, but should be disabled on a |
15 |
|
|
# production server as they affect performance. |
16 |
|
|
# |
17 |
|
|
#PerlSwitches -w |
18 |
|
|
|
19 |
|
|
# Uncomment this line to enable taint checking globally. When Perl is |
20 |
|
|
# running in taint mode various checks are performed to reduce the |
21 |
|
|
# risk of insecure data being passed to a subshell or being used to |
22 |
|
|
# modify the filesystem. Unfortunately many Perl modules are not |
23 |
|
|
# taint-safe, so you should exercise care before enabling it on a |
24 |
|
|
# production server. |
25 |
|
|
# |
26 |
|
|
#PerlSwitches -T |
27 |
|
|
|
28 |
|
|
# This will allow execution of mod_perl to compile your scripts to |
29 |
|
|
# subroutines which it will execute directly, avoiding the costly |
30 |
|
|
# compile process for most requests. |
31 |
|
|
# |
32 |
|
|
#Alias /perl /var/www/perl |
33 |
|
|
#<Directory /var/www/perl> |
34 |
|
|
# SetHandler perl-script |
35 |
|
|
# PerlResponseHandler ModPerl::Registry |
36 |
|
|
# PerlOptions +ParseHeaders |
37 |
|
|
# Options +ExecCGI |
38 |
|
|
#</Directory> |
39 |
|
|
|
40 |
|
|
# This will allow remote server configuration reports, with the URL of |
41 |
|
|
# http://servername/perl-status |
42 |
|
|
# Change the ".example.com" to match your domain to enable. |
43 |
|
|
# |
44 |
|
|
#<Location /perl-status> |
45 |
|
|
# SetHandler perl-script |
46 |
|
|
# PerlResponseHandler Apache2::Status |
47 |
|
|
# Order deny,allow |
48 |
|
|
# Deny from all |
49 |
|
|
# Allow from .example.com |
50 |
|
|
#</Location> |