W3C home > Mailing lists > Public > www-validator-cvs@w3.org > April 2007

validator/httpd/conf httpd.conf,1.31,1.32

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 28 Apr 2007 12:10:20 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Hhlkq-000254-5x@lionel-hutz.w3.org>

Update of /sources/public/validator/httpd/conf
In directory hutz:/tmp/cvs-serv7973/httpd/conf

Modified Files:
	httpd.conf 
Log Message:
Add back mod_perl 2.x example config.

Index: httpd.conf
===================================================================
RCS file: /sources/public/validator/httpd/conf/httpd.conf,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- httpd.conf	24 Apr 2007 19:37:45 -0000	1.31
+++ httpd.conf	28 Apr 2007 12:10:12 -0000	1.32
@@ -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.
 
Received on Saturday, 28 April 2007 12:10:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:57 GMT