I believe you are wrong. That is what the ServerAlias directive is for.
http://httpd.apache.org/docs/2.2/mod...tml#servername
http://httpd.apache.org/docs/2.2/mod...ml#serveralias
I believe you are wrong. That is what the ServerAlias directive is for.
http://httpd.apache.org/docs/2.2/mod...tml#servername
http://httpd.apache.org/docs/2.2/mod...ml#serveralias
The SeverAlias instruction did the trick on my fake2 file
Now fake2 file looks like this
Now, if I skip the "www" on fake2.com in my browser, it will retrieve the right content anyway NOT fake1.comCode:<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName www.fake2.com ServerAlias 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>
Bookmarks