aboutsummaryrefslogtreecommitdiff
path: root/www/validator/files
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-09-16 20:09:09 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-09-16 20:09:09 +0000
commitfac3a565aace0757b62f5b66f697fa1e0fce2a9b (patch)
treeb515fa3dab1b484b2a95a3f595843114913c492c /www/validator/files
parentdbb6bb55429139bee6aaba7c5120a7015aad4deb (diff)
downloadports-fac3a565aace0757b62f5b66f697fa1e0fce2a9b.tar.gz
ports-fac3a565aace0757b62f5b66f697fa1e0fce2a9b.zip
Notes
Diffstat (limited to 'www/validator/files')
-rw-r--r--www/validator/files/pkg-message.in46
-rw-r--r--www/validator/files/validator.conf.sample127
2 files changed, 173 insertions, 0 deletions
diff --git a/www/validator/files/pkg-message.in b/www/validator/files/pkg-message.in
new file mode 100644
index 000000000000..e3e568adfb45
--- /dev/null
+++ b/www/validator/files/pkg-message.in
@@ -0,0 +1,46 @@
+-------------------------------------------------------------------------------
+The W3C Markup Validation Service has been installed. However, it will not
+do anything until you set up your web server to utilize it. Below is an
+Apache configutation snippet that you can put into your httpd.conf to
+utilize the validator. If you are using another web server, you will have
+to configure it yourself. The W3C only recommends the use of the Apache
+web server, so there are no other web server configuration snippets.
+
+A sample validator.conf has been installed at
+%%PREFIX%%/www/validator/htdocs/config/validator.conf.sample
+You need to copy this file to /etc/w3c/validator.conf and then edit it to
+your liking. If you have used a previous version of the validator, you
+will need to manually check if anything new has been added to the W3C's
+validator.conf and edit your own validator.conf accordingly.
+
+# 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.
+#
+# Note: running the validator under mod_perl is not supported at the moment.
+# You are also required to have mod_include active for the validator
+# pages to show up as they should.
+#
+# The /w3c-validator loaction can be changed to whatever you want it to be,
+# but make sure you change it for both of these ScriptAlias commands as well
+# as the Alias command under them.
+
+# First, tell httpd that check and sendfeedback.pl are CGI scripts.
+
+ScriptAlias /w3c-validator/check \
+ %%PREFIX%%/www/validator/httpd/cgi-bin/check
+ScriptAliasMatch /w3c-validator/feedback(\.html)? \
+ %%PREFIX%%/www/validator/httpd/cgi-bin/sendfeedback.pl
+
+# This is the directory where you have the validator's *.html, *.css etc files.
+
+Alias /w3c-validator/ %%PREFIX%%/www/validator/htdocs/
+<Directory %%PREFIX%%/www/validator/htdocs/>
+ Options IncludesNOEXEC Indexes MultiViews
+ AllowOverride None
+ AddHandler server-parsed .html
+ AddCharset utf-8 .html
+</Directory>
+-------------------------------------------------------------------------------
diff --git a/www/validator/files/validator.conf.sample b/www/validator/files/validator.conf.sample
new file mode 100644
index 000000000000..6c45e8e2576e
--- /dev/null
+++ b/www/validator/files/validator.conf.sample
@@ -0,0 +1,127 @@
+#
+# Main Configuration File for the W3C Markup Validation Service.
+#
+# $Id: validator.conf,v 1.24 2005/07/08 08:31:09 ot Exp $
+#
+# See 'perldoc Config::General' for the syntax, and be aware that the
+# 'SplitPolicy' is 'equalsign', ie. keys and values are separated by '\s*=\s*',
+# and that 'InterPolateVars' is in effect.
+#
+
+#
+# Base Path for Markup Validator files.
+#
+# You MUST set these unless you use the default locations for the files.
+# e.g. the config files in "/etc/w3c/" and everything else in
+# "/usr/local/validator/".
+#
+# Make sure all file paths below do NOT end with a slash
+
+<Paths>
+ #
+ # Base path. Defaults to the value of the W3C_VALIDATOR_HOME environment
+ # variable or /usr/local/validator if the variable does not exist.
+ Base = /usr/local/www/validator
+
+ #
+ # Location of template files
+ Templates = $Base/share/templates
+
+ <SGML>
+ #
+ # The SGML Library Path.
+ Library = $Base/htdocs/sgml-lib
+
+ #
+ # The SGML Parser to use. Defaults to /usr/bin/onsgmls.
+ Parser = /usr/local/bin/onsgmls
+ </SGML>
+</Paths>
+
+#
+# This controls whether the debugging options are allowed to be enabled.
+Allow Debug = yes
+
+#
+# This lets you permanently enable the debugging options. Can be overridden
+# with CGI options (unlike "Allow Debug" above).
+Enable Debug = no
+
+#
+# Whether private RFC1918 addresses are allowed.
+Allow Private IPs = no
+
+#
+# Whether the (highly experimental!) SOAP support should be enabled.
+Enable SOAP = no
+
+#
+# Whether the validator will check its own output.
+# 0 means it will refuse to check its own output, 1 means it will but it will
+# refuse to check the results of it checking itself. Etc.
+Max Recursion = 0
+
+#
+# Protocols the validator is allowed to use for retrieving documents.
+# The default is to allow http and https.
+<Protocols>
+ Allow = data,http,https
+</Protocols>
+
+#
+# Email address of the maintainer of this service.
+Maintainer = www-validator@w3.org
+
+#
+# The "Home Page" for the service. Make sure this ends with a slash.
+Home Page = http://validator.w3.org/
+
+#
+# Base URI for the Element Reference.
+Element Ref URI = http://www.htmlhelp.com/reference/html40/
+
+
+
+#
+# Mapping tables etc...
+#
+
+#
+# Maps element names to URLs (cf. "Element Ref URI" above).
+<Elements>
+ Include /usr/local/www/validator/htdocs/config/eref.cfg
+</Elements>
+
+#
+# Main document Type Registry; contains all information on the types
+# of documents we support and how they are processed.
+<Types>
+ Include /usr/local/www/validator/htdocs/config/types.conf
+</Types>
+
+#
+# Mapping of charset names to their IANA names and how iconv(3) knows them.
+<Charsets>
+ Include /usr/local/www/validator/htdocs/config/charset.cfg
+</Charsets>
+
+#
+# Map MIME Media Type to Parse Mode mapping.
+<MIME>
+ text/xml = XML
+ image/svg = XML
+ image/svg+xml = XML
+ application/smil = XML
+ application/xml = XML
+ text/html = TBD
+ text/vnd.wap.wml = XML
+ application/xhtml+xml = XML
+ application/mathml+xml = XML
+</MIME>
+
+#
+# Source for the "Tip of The Day" blurbs.
+<Tips>
+ Include /usr/local/www/validator/htdocs/config/tips.cfg
+</Tips>
+