I was recently working on a legacy ColdFusion application that required .html and .htm files to be processed with ColdFusion. The application currently runs on ColdFusion 9 and we are preparing it for ColdFusion 10. To accomplish the processing of .html files with ColdFusion, we had always followed the method of editing the web.xml file and adjusting the ISAPI filter in IIS. However, this was not enough in ColdFusion 10. In CF10, there is now an additional step that is required due to TomCat.
Steps to set this up…
- Set up IIS and the connectors as previously documented. Instructions from Peter Bell
- Go to the uriworkermap.properties file for your ColdFusion10 install
- The normal path to this is <cf root>/config/wsconfig/1/uriworkermap.properties
- Copy the line /*.cfm = cfusion and create new lines at the bottom of the file as follows for each extension you want ColdFusion to process.
/*.html = cfusion
/*.htm = cfusion
- Save uriworkermap.properties and restart your ColdFusion 10 service.