I want to run name based virtual hosts but without setting up a local DNS
server. My connection to the net is via a firewalled adsl router (ip
212.**.**.**) that forwards anything on port 80 to the server (lets say
its 192.168.3.3

.
httpd.conf is set up something like this :
NameVirtualHost 192.168.3.38
<VirtualHost 192.168.3.38>
<font color=purple> ServerName <a style='text-decoration: underline;' href="http://www.blahblah.com</font" target="_blank">www.blahblah.com</font</a>>
DocumentRoot /home/blahblah/html
</VirtualHost>
With the default server stuff set to an account called default.
I believe that adding the next line to my /etc/hosts file with
192.168.3.38 <a style='text-decoration: underline;' href="http://www.blahblah.com" target="_blank">www.blahblah.com</a>
will fake a DNS server. Does this approach work? I'd like to have this
sorted before the actual domain name is configured to point towards my
adsl ip address. I'm presuming that I use the servers ip address in the
virtual host settings NOT the adsl ip address.......
Thanx
--
/* Hugh Lutley aKa Spewy
* This message was created on either
* Mandrake 9.2 Linux on Athlon XP <- Gnome 2.4 ->
* Slackware 9.1 Linux on P166 <- Command Line Zone ->
*/
(created in ViM)<!-- ~MESSAGE_AFTER~ -->