summaryrefslogtreecommitdiff
path: root/perl/mod_perl/mod_perl.conf
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-27 10:31:55 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-30 08:28:31 +0700
commit5afe071b987c6706a2a9bf532e9d6f396cea3b95 (patch)
tree34c9558b0e17309859831f73cafd4678988ebd61 /perl/mod_perl/mod_perl.conf
parent39178a6774cb91198018925efa533a7a9107cd3d (diff)
downloadslackbuilds-5afe071b987c6706a2a9bf532e9d6f396cea3b95.tar.gz
perl/mod_perl: Added (Perl Interpreter for Apache).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'perl/mod_perl/mod_perl.conf')
-rw-r--r--perl/mod_perl/mod_perl.conf31
1 files changed, 31 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..0ececcc1b0
--- /dev/null
+++ b/perl/mod_perl/mod_perl.conf
@@ -0,0 +1,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>