Forum Moderators: open
My site resides on a linux server and I have a number of other computers that also share the same line via a hub/router.
When the hosts file on windows xp was standard I would visit my site example.com and i would see the router admin page. What I did was add the following to my hosts file...
ip.of.linux.server www.example.com
Now what I have done is to set up virtual hosting in the following format.
content.examle.com
Each content area is stored bellow wwwroot in the /home/username/public_html directory .
Is there any way for me to be able to view these subdomains by altering the host file.
Thanks very much in advance.
Mack.
eg: NameVirtualHost 10.0.10.7:80
If not that is the one you need to add to the windows host file.
Have you checked the virtual host is working on the linux box?
If not try (from linux box command line)
telnet yourlinux.box 80
GET [yourvirtualhost.com...]
and see if you get the page correctly.