Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > b0c2997609f4a20cb939f892e5d95351 > files > 1

w3c-markup-validator-1.2-2.fc14.noarch.rpm

#                                                                -*- 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/share/w3c-markup-validator.  If not, tune them according to your setup.
#
# To run the validator without mod_perl 2.x even if it is loaded, comment
# out the "IfDefine MODPERL2" sections below.

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

AliasMatch ^/+w3c-validator/+check(/+referer)?$   /usr/share/w3c-markup-validator/cgi-bin/check
AliasMatch ^/+w3c-validator/+feedback(\.html)?$ /usr/share/w3c-markup-validator/cgi-bin/sendfeedback.pl

<IfDefine MODPERL2>
# Note: this affects the whole server, not just the validator.
PerlSwitches -T
</IfDefine>

<LocationMatch "^/+w3c-validator/+(check(/+referer)?|feedback(\.html)?)$">
  Options               +ExecCGI
  SetHandler            cgi-script
<IfDefine MODPERL2>
  SetHandler            perl-script
  PerlResponseHandler   ModPerl::Registry
  PerlOptions           +ParseHeaders
</IfDefine>
  # Environment settings affecting validator's outside connectivity, see
  # LWP::UserAgent and Net::FTP documentation for details.
  #SetEnv                http_proxy      http://proxy:3128
  #SetEnv                https_proxy     http://proxy:3128
  #SetEnv                ftp_proxy       http://proxy:3128
  #SetEnv                no_proxy        localdomain
  #SetEnv                FTP_PASSIVE     1
</LocationMatch>

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

Alias /w3c-validator/   /usr/share/w3c-markup-validator/htdocs/
<Directory /usr/share/w3c-markup-validator/htdocs/>
  Options               IncludesNOEXEC Indexes MultiViews
  AllowOverride         None
  AddHandler            server-parsed .html
  AddCharset            utf-8         .html
  AddEncoding           x-gzip        .gz
  <Files *.js.gz>
    ForceType           application/javascript
  </Files>
  <Files *.css.gz>
    ForceType           text/css
  </Files>

  <IfModule mod_rewrite.c>
  Options +SymLinksIfOwnerMatch
  RewriteEngine On
  RewriteBase /w3c-validator/
  RewriteRule fragment-upload(.html)? detailed.html#validate-by-input [R,L,NE]
  RewriteRule file-upload(.html)? detailed.html#validate-by-upload [R,L,NE]
  </IfModule>

  <IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType image/gif A2592000
  ExpiresByType image/jpg A2592000
  ExpiresByType image/png A2592000
  ExpiresByType text/html A604800
  ExpiresByType text/css A2592000
  ExpiresByType text/javascript A2592000
  ExpiresByType application/javascript A2592000
  ExpiresByType application/ecmascript A2592000
  </IfModule>
</Directory>

# Atom news feed
Redirect /w3c-validator/whatsnew.atom http://www.w3.org/QA/Tools/validator-whatsnew.atom