summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--httpd/conf/httpd.conf21
1 files changed, 18 insertions, 3 deletions
diff --git a/httpd/conf/httpd.conf b/httpd/conf/httpd.conf
index eeea07e..a27738e 100644
--- a/httpd/conf/httpd.conf
+++ b/httpd/conf/httpd.conf
@@ -8,12 +8,27 @@
# The values below assume that you have the validator files in
# /usr/local/validator. If not, tune them according to your setup.
#
-# Note: running the validator under mod_perl is not supported at the moment.
+# To run the validator with mod_perl 2.x, uncomment the "IfDefine MODPERL2"
+# sections below.
# First, tell httpd that check and sendfeedback.pl are CGI scripts.
-ScriptAlias /w3c-validator/check /usr/local/validator/cgi-bin/check
-ScriptAliasMatch /w3c-validator/feedback(\.html)? /usr/local/validator/cgi-bin/sendfeedback.pl
+AliasMatch ^/+w3c-validator/+check$ /usr/local/validator/cgi-bin/check
+AliasMatch ^/+w3c-validator/+feedback(\.html)?$ /usr/local/validator/cgi-bin/sendfeedback.pl
+
+#<IfDefine MODPERL2>
+# Note: this affects the whole server, not just the validator.
+#PerlSwitches -T
+#</IfDefine>
+<LocationMatch "^/+w3c-validator/+(check|feedback(\.html)?)$">
+ Options +ExecCGI
+ SetHandler cgi-script
+#<IfDefine MODPERL2>
+# SetHandler perl-script
+# PerlResponseHandler ModPerl::Registry
+# PerlOptions +ParseHeaders
+#</IfDefine>
+</LocationMatch>
# This is the directory where you have the validator's *.html, *.css etc files.