Hello,
I am posting this as a result of a long testing .I have tried configuring in a lot mannier ways, and end up failing or not getting the correct results.
Now
Let me explain few things i have done tell now and Apache worked.
I made a web page index.html in the default directory
/var/www/html/
added the following line in the /etc/hosts
192.168.0.10
www.google.com
and restarted the httpd.
when i entered the site name i get the web page correctly
This can be done by editing the last 8 lines of httpd.conf files.
what is this how the apache knows that the page is there and link this web address to it.
Now when it comes to hosting Virtual websites this method fails
so what i did as its reading the default address for one website.
I configurred the other one in a folder /virt
so that lines goes like this
</virtual>
document root /virt/
Servername
www.yahoo.com
<virtual>
Assume that the virtual is the same lines in the httpd.conf i dont edit them
now problem is both the websites reads one index.html
not the other one
what is this