PDA

View Full Version : [ubuntu] two domain names goes to one other on my server?


dorogon
May 28th, 2009, 05:19 AM
I got two domain names that goes to another domain name,
i got two (A) on all my domain names (domainname.com & www,domaimname.com)
but only two of them works without "www" .

The problem started when my hard drive in the server crashed and i had to replace it with a new one and reinstall Ubuntu Server again.

Any one know what i missed or done wrong?

cdenley
May 28th, 2009, 09:13 AM
Do the domain names resolve to the correct IP?

dig +short www.mydomain.com
dig +short mydomain.com

What do the vhost configurations look like?

cat /etc/apache2/sites-enabled/*


How do they not work? Do you get the wrong vhost, or do you get some kind of error?