I have done this many times in the past where customers work on a temporary website until the developer completes and then after the DNS gets changed I rename the website from temporary name to official domain name. Did that tonight but the site won't come up. In /etc/apache2/sites-available/newname.cvom.vhost is two line one showing a .err which means there is some kind of error and Apache won't load it. What is the best way to troubleshoot this so I can find what the error is? Just for test I changed the website name by adding an x to the front of it and it created a new vhost with that name but no error. Not sure where to start. Thanks!
I found You can use apachectl configtest or apachectl -t to check the syntax of the vhost and it found some php admin directives I had added before but now it did not like them. I removed them and it creates the vhost error free. Thanks!