Hi guys, I just added a new domain to my server but its jumping to another crap blog that I made a while back instead of it's own location on the server.
I've made a new vhost file in sites-available:
Code:
<VirtualHost 178.79.183.119:81>
# Postfix admin
Alias /postfixadmin /srv/www/postfixadmin
# blog
ServerAdmin chris@pixelatedphotographer.com
ServerName standingstart.net
ServerAlias www.standingstart.net
DocumentRoot /srv/www/standingstart.net/public_html/
ErrorLog /srv/www/standingstart.net/logs/error.log
CustomLog /srv/www/standingstart.net/logs/access.log combined
</VirtualHost>
The other domain is:
Code:
<VirtualHost 178.79.183.119:80>
# Postfix admin
Alias /postfixadmin /srv/www/postfixadmin
# blog
ServerAdmin chris@pixelatedphotographer.com
ServerName chrisgilloch.com
ServerAlias www.chrisgilloch.com
DocumentRoot /srv/www/chrisgilloch.com/public_html/
ErrorLog /srv/www/chrisgilloch.com/logs/error.log
CustomLog /srv/www/chrisgilloch.com/logs/access.log combined
</VirtualHost>
When I had them both at <VirtualHost 178.79.183.119:80> I got the error:
Code:
[warn] VirtualHost 178.79.183.119:80 overlaps with VirtualHost 178.79.183.119:80, the first has precedence, perhaps you need a NameVirtualHost directive
and updated the hosts file:
127.0.0.1 localhost.localdomain localhost
178.79.183.119 swansea.chrisgilloch.com swansea
178.79.183.119 swansea.standingstart.net swansea
but
www.standingstart.net jumps to
www.chrisgilloch.comMy DNS settings are as follows:


I'm running Apache on ubuntu lucid
Can you guys spot where I'm going wrong? Any ideas would be great!
Cheers
Chris
[/code]