W3C home > Mailing lists > Public > www-validator@w3.org > June 2001

Re: link check

From: Hugo Haas <hugo@w3.org>
Date: Mon, 25 Jun 2001 20:42:00 -0400
To: hunter <hunter@userfriendly.net>
Cc: www-validator@w3.org
Message-ID: <20010625204200.A17381@tux.w3.org>
* hunter <hunter@userfriendly.net> [2001-06-25 19:05-0400]
> I too am trying to get the linkchecker to work, and i noticed your URL
> is http://validator.w3c.org/checklink which makes a call to the perl
> script. I am wondering, stupid as it is, how you call this without an
> extension, meaning if i copied your form, and placed it on my site, i
> wondered how to call it without the .html extension.

The link checker is a CGI script. validator.w3.org runs Apache, and
the configuration file says, among other things:

  ServerName validator.w3.org
  [..]
  ScriptAlias /checklink /usr/local/validator/httpd/cgi-bin/checklink.pl

Gerald, I just noticed that the httpd.conf in CVS[1] is 2 years old.
Where is the current version? I lost track during the multiple moves
of the service.

As a side note somewhat off-topic for www-validator but short enough
to be mentioned, "not mentioning the extension" (.html, .jpg) is due
to content negotiation, which allows you to propose multiple formats
for the same resource (SVG, JPG, PNG, etc) so that the client gets the
best format for its capabilities. You can get that:
- by enabling negotiation on a DirectoryResource[2] in Jigsaw.
- by using mod_negotiation[3] in Apache (see the content negotiation
  documentation[4]).

Hope this helps.

  1. http://dev.w3.org/cvsweb/validator/httpd/conf/httpd.conf
  2. http://www.w3.org/Jigsaw/User/api/w3c.jigsaw.resources.DirectoryResource.html
  3. http://httpd.apache.org/docs/mod/mod_negotiation.html
  4. http://httpd.apache.org/docs/content-negotiation.html
-- 
Hugo Haas - W3C
mailto:hugo@w3.org - http://www.w3.org/People/Hugo/ - tel:+1-617-452-2092
Received on Monday, 25 June 2001 20:42:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:58 GMT