So, I just bought a brand new domain. I set up my dns records with the host (godaddy) but something strange happens on my server.
I've added this to the httpd.conf file:
<VirtualHost *:80>
ServerName www.newdomainname.tld
DocumentRoot /usr/share/roundcube/
</VirtualHost>
But somehow I'm redirected to the root of my server. Then I tried adding this under the entry for the new domain name:
<VirtualHost *:80>
ServerName shop.olddomainname.tld
DocumentRoot /usr/share/roundcube/
</VirtualHost>
And it worked without any problems. What's going on? Am I forgetting anything?