Coldfusion 11 serving up .cfm files as download
We started with a working instance of Windows Server 2007 R2 using IIS 7 with Coldfusion 9 Enterprise Edition installed that hosts multiple sites (in fact its still currently running now). Made an exact copy of it to a new instance. It worked just as the old one did though we could only run each site through localhost as the old domains have not been transferred over to point to the new server. We uninstalled Coldfusion 9 Enterprise Edition and then installed Coldfusion 11 Standard Edition. This is of course where things started going horribly wrong.
Being a new install using the Coldfusion Web Server Configuration we added all the sites. At first just nothing worked. 500.* errors always.
Multiple tries of removing and adding sites through the config manager didn't work, then we noticed that Coldfusion 9 had not properly uninstalled and removed its vestiges from IIS. AboMapperCustom was still listed in all the site's Handler Mappings. Force removed that, one more cycle of the Coldfusion config manager and finally coldfusion files seemed (more on that later) to be properly being served up.
We then started to add the datasources. Pulled up a site (through localhost) that used one of the datasources and got a 500.* error. Got an end run around looking on the web for solutions, come to find that not even CFIDE/Administrator wasn't working. More hair pulling later updated Coldfusion 11 to update 7 (was at 3 if I remember correctly). 127.0.0.1/CFIDE/Administrator started working at least. Removed and added sites through Coldfusion config manager again. Got the general http://localhost/ to work, CFIDE/Administrator does not work (won't accept http verb post, even though its properly configured to do so everywhere we can figure). Could not find a good solution for that anywhere so as a test we tried navigating on the site to pull up another page and that is when we started getting .cfm served up as downloads. These files served this way are neither pure text cfm files nor are they html files with improper headers confusing IE. These have encoded data that a text editor can't read.
http://localhost/ works.
http://localhost/index.cfm forces the weird download of encoded garbage (5KB file turns into 412KB).
http://localhost/guides/ works.
http://localhost/guides/index.cfm does not.
I have seen zero working solutions on the web for this, which is rare.
