I am attempting to setup virtual hosts so that I can host multiple sites on Apache2.
I have currently got two files in my /etc/apache2/sites-available folder, each containing the following:
<VirtualHost *:80>
ServerName www.domain.com
ServerAlias domain.com
DirectoryIndex index.php
DocmentRoot /var/www/domain
</VirtualHost>
Obviously the 'domain' changes to the domain for the two websites I am trying to host.
The problem is that when I go to domain.com and then domain2.com it only loads up domain.com in both examples...
Please could someone suggest what is going on?
I am using Ubunt 12.04
Thanks