summaryrefslogtreecommitdiffstats
path: root/perl/mod_perl/mod_perl.conf
diff options
context:
space:
mode:
Diffstat (limited to 'perl/mod_perl/mod_perl.conf')
-rw-r--r--perl/mod_perl/mod_perl.conf32
1 files changed, 32 insertions, 0 deletions
diff --git a/perl/mod_perl/mod_perl.conf b/perl/mod_perl/mod_perl.conf
new file mode 100644
index 0000000000..5135090fe6
--- /dev/null
+++ b/perl/mod_perl/mod_perl.conf
@@ -0,0 +1,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>