NameVirtualHost problem
Hi,I've the following problem which drives me crazy for days!
I've 2 domain names that should point to the same cPanel account.
The ip-based account with domain 1 is working as it should. But i can't get the second domain name to display the account. Only redirecting or the message: "There is no website configured at this address."
I've working on it for days, trying everything I find on the net, but still no solution.
Should I create an account for domain 2? Or just add some virtualhost stuff in httpd.conf?
Something like this should do it I would think:
NameVirtualHost xxx.xxx.xxx.xx9
<VirtualHost xxx.xxx.xxx.xx9>
ServerName www(dot)domain1(dot)com
DocumentRoot /home/domain1/public_html
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xx6>
ServerName www(dot)domain2(dot)com
DocumentRoot /home/domain1/public_html
</VirtualHost>
Please help. Thank you