0

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

Edited by Octet

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by billconner
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.