Thread:Project:Support desk/Problems changing $wgServer to CNAME

I've recently installed MediaWiki on Ubuntu Server 12.04. I've gone through all of my configuration, and have the application functioning as I would like. I did all of my initial configuration using http:// /wiki. Since then, I've created a CNAME in DNS, and I'm attempting to get the wiki working with the CNAME, rather than the hostname. I've gotten all of my configurations correct in Apache, and I have the CNAME redirecting to the wiki site. So the only thing left to do is to change the $wgServer variable so that it doesn't use the hostname in the URL. As soon as I edit $wgServer, in LocalSettings.php, I lose all of the formatting o the wiki site(i.e. the Vector skin no longer displays). I've posted a thread on /r/sysadmin, that contains some screen shots. Any help would be greatly appreciated.

http://www.reddit.com/r/sysadmin/comments/wgpl9/configuring_mediawiki_and_running_into_a_problem/

Thanks in advance.