OK, almost there, but getting a funny error when retrieving my second site... if I do not append "www" at the beggining, it just displays the other site instead. For instance ...
If I put www.fake1.com browser displays--> www.fake1.com (right)
If I put fake1.com browser displays--> fake1.com (right)
Now...
If I put: www.fake2.com browser displays--> www.fake2.com content (right)
If I put fake2.com browser displays--> fake1.com (wrong!!!)
Why I'm getting the wrong website content when "www" is omitted??? I do not understand. Here's the exact content of each file, which now I am copy/pasting in its total
For fake1.com
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
#I want to be able to access the web site using www.fake1.com
ServerName www.fake1.com
DocumentRoot /var/www/fake1.com/docs
<Directory /var/www/fake1.com/docs>
Order Deny,Allow
Allow from all
# Don't show indexes for directories
Options -Indexes
</Directory>
</VirtualHost>
For fake2.com
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
#I want to be able to access the web site using www.fake2.com
ServerName www.fake2.com
DocumentRoot /var/www/fake2.com/docs
<Directory /var/www/fake2.com/docs>
Order Deny,Allow
Allow from all
# Don't show indexes for directories
Options -Indexes
</Directory>
</VirtualHost>
This is driving me crazy...am I missing something or this is a normal behaviour or what?
Bookmarks