diff options
author | ville <ville@localhost> | 2007-04-28 12:10:12 +0000 |
---|---|---|
committer | ville <ville@localhost> | 2007-04-28 12:10:12 +0000 |
commit | 29969a8f964bc11bce01c34ce699573ccbe3e75f (patch) | |
tree | 721b99fcfe60d8b8af470a24f075d3c664383413 | |
parent | fb8e66eb1687d5770dd9d851020739941f67c309 (diff) | |
download | markup-validator-29969a8f964bc11bce01c34ce699573ccbe3e75f.zip markup-validator-29969a8f964bc11bce01c34ce699573ccbe3e75f.tar.gz markup-validator-29969a8f964bc11bce01c34ce699573ccbe3e75f.tar.bz2 |
Add back mod_perl 2.x example config.
-rw-r--r-- | httpd/conf/httpd.conf | 21 |
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. |