Hi,
I'm up to my knees in crocodiles on this, and rapidly forgetting that
my original intention was to drain the swamp.
I'm using Apache 1.3.27 (installed using PHPDev 4) to maintain a
number of Web sites. I use my local PC for development only (not as a
live server) and I'm having problems with absolute addressing in the
HTML (changing to relative addressing is not an option).
In summary, my absolute addressing is resolving to an address of
"E:\phpdev\www" for all but the first VirtualHost - I want it to
resolve to the root of the relevant site for each site, as it will
when published to the live server.
This is what I have on my PC: -
E:\phpdev\www\site-a
E:\phpdev\www\site-b
.... etc.
From reading posts here and elsewhere, I understand that VirtualHosts
is (probably?) the answer, however I'm having problems - this is my
HTTPD.CONF: -
NameVirtualHost *
<VirtualHost *>
ServerName
www.site-a.co.uk
DocumentRoot E:/phpdev/www/site-a
</VirtualHost>
<VirtualHost *>
ServerName
www.site-b.co.uk
DocumentRoot E:/phpdev/www/site-b
</VirtualHost>
....etc
I've fiddled-around with variations on this theme ("127.0.0.1/2" in
place of "*") - I've also tried "127.0.0.n
www.site-x.co.uk" in the
"windows/host" file - all without a result.
I've tried the HTML "<base ...>" option, but that results in an
attempt to connect to the Internet (I did that with the above "host"
file entries and with Apache active - shouldn't Apache have caught it
and passed it to me locally as 127.0.0.1 ?).
Am I crying for the moon here?
Any advice appreciated.
--
Nick Michell
Doff Your Hat for personal reply.