Processing .html files using ColdFusion - on a Mac or a PC
1. Update web.xml
In ColdFusion (e.g. #CFUSIONROOT#\wwwroot\WEB-INF\web.xml in windows or under JRUn on a Mac, in /Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/web.xml) add the following xml:
<servlet-name>CfmServlet</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<servlet-mapping id="macromedia_mapping_15">
<servlet-name>CfmServlet</servlet-name>
<url-pattern>*.html/*</url-pattern>
</servlet-mapping>
Note that the 14 and 15 should be unique (and I make them sequential - I *think* that matters) so if you have 9 mappings, these would be _10 and _11.
Then Restart CF.
2. Update Web Server
In IIS6, go into site properties, click on the "home directory" tab, click on the configure button, under mappings, select and "edit" the .cfm record and copy the value of "executable". Cancel out of that, Add new mapping, paste the executable value, put ".html" into the extension and hit OK (leave as all verbs).
In Apache 2.x on a Mac (should be same elsewhere) I went into httpd.conf. I found a line that said AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf (search for .cfm). I added .html to the end of the list giving:
AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf .html
I then restarted Apache (in Terminal sudo apachectl restart - enter root password when requested).
Tested and working.



WinXP, CF7, IIS6
Only shortage now for me is DW8 does not recognise ctml code for html page so does not include in dropdown list, but there are ways around it.
@Ben, Primarily decoupling the URL interface to a website from the programming language it happens to be built in.
We have a mulithomed CF server on IIS 6 and I'd prefer to have this only work on one of the sites so that the HTML files in other sites are not all sent through ColdFusion before being sent out.
I'm not sure in Apache. In IIS 6 you can definitely set these properties at a site level, but I'm not sure you can make it any more granular than that.
Yes, I thought so too. But even though I've only added the HTML extension to be processed by ColdFusion for one IIS site, all my other sites on that server are also processing the HTML files as CFM.
By the way, I'm testing this out on CFMX 6.1, not 7
Sorry I couldn't be of much more help. Let me know if you figure this out (and out of interest, what version of what OS and what version of what web server are you running?)
They had the mapping for RDS commented out, so not sure if skipping a number would make a difference really.
Cheers. (Was kind of neat that this was the first page to show up when I searched google)
Good timing! I just installed the CF8 final release on my laptop so I was also going through this yesterday! As you said, seems to work well in CF8.
Unfortunately I'm having the same issue as Dave above - although the .html extension has only been added for one site, Coldfusion is now processing .html files for all sites.
Anyone found a way round this?
Also this is a great way to set up a page with cf and html and allow client to connect with contribute to allow them to edit the page content but none of the cfml!!