On Sat, 17 Sep 2005 17:56:40 +0200 in
comp.infosystem s.
www.authoring.html, Niki Kovacs favored us with...
I'm an Austrian writer living in Montpezat (South France). I just installed
a local W3C validator on my machine (Slackware 10.1, local Apache server).
It's accessible as http://w3c-validator, because I'm on dialup and I want
to check pages offline.
Unfortunately, URL upload won't work, because the validator doesn't accept
any URL's beginning with http://localhost.
Is there any way to circumvent this limitation?
Sure! Since you have a local server, all you need do is configure a
Virtual Host in Apache. For instance, here's how I set up the virtual
host oldtc3.me in httpd.conf:
<VirtualHost *>
ServerName oldtc3.me
DocumentRoot "z:/web_site"
<Directory />
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
</Directory>
</VirtualHost>
The document root is the directory that acts as the root directory of
the virtual host: think of it as a sort of mount point.
Then separately in my HOSTS file I configure oldtc3.me to have IP
address 127.0.0.1, which stands for the local machine. (You seem to
be on a UNIX. I don't know what corresponds to the HOSTS file, but
I'm sure there must be some file that forces a given host to be at a
given IP address and bypasses normal DNS lookup.)
Once that's done, my browser does just fine with URLs like
"http://oldtc3.me/stat/cltlab.htm". Since it's http, I'm sure your
local validator would also do fine.
--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec:
http://www.w3.org/TR/html401/
validator:
http://validator.w3.org/
CSS 2.1 spec:
http://www.w3.org/TR/CSS21/
validator:
http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you