#                                                                -*- apache -*-
# Example httpd.conf snippet for W3C Markup Validation Service
# Note that this is not a complete server configuration file, but contains
# only the validator-specific part.
#
# You can use the Include directive for including this in your main httpd.conf.
#
# 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.

# First, tell httpd that check and sendfeedback.pl are CGI scripts.

ScriptAlias      /w3c-validator/check   /opt/w3c-markup-validator/cgi-bin/check
ScriptAlias      /w3c-validator/checklink   /opt/w3c-markup-validator/cgi-bin/checklink
ScriptAliasMatch /w3c-validator/feedback(\.html)? /opt/w3c-markup-validator/cgi-bin/sendfeedback.pl

# This is the directory where you have the validator's *.html, *.css etc files.

Alias /w3c-validator/   /opt/w3c-markup-validator/htdocs/
<Directory "/opt/w3c-markup-validator/htdocs">
  Options               IncludesNOEXEC Indexes MultiViews
  AllowOverride         None
  AddHandler            server-parsed .html
  AddCharset            utf-8         .html
</Directory>

<Directory "/opt/w3c-markup-validator">
    AllowOverride None
    Order allow,deny
    Allow from 127.0.0.0/8
</Directory>

<Directory "/opt/w3c-markup-validator/htdocs/images/">
    Options FollowSymLinks
<IfModule mod_headers.c>
  Header set            Cache-Control "max-age=604800"
</IfModule>
</Directory>
