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

No formatting means $wgServer is set wrong (Initial page still displays since we don't explicitly check the initial url). However $wgServer controls the urls used for loading the css/js files (and several other things).

It would help to know what exactly you set it to, and what exactly you expect the url of your wiki to be. Without knowing that, all I can say is that you set it to something wrong. If you don't want to publically disclose your site's url, I'd suggest looking at the page source, and looking at the css/js urls used in the html, and compare what they are to what you expect them to be, which will probably give guidance to where things went wrong.