This TechNote describe how to render HTM/HTML pages with Adobe ColdFusion 8. Using HTM/HTML pages with ColdFusion code is a safe practice to "hide" the server technology you are using from potential hackers.

Note: You can also use these steps to render pages to any other extension.

Modify the web.xml file by adding the mappings to ColdFusion

  1. In a text editor, open web.xml from one of the following locations:
    • Multi-server config: {jrun_root}\servers\htmlMappings\cfusion.ear\cfusion.war\WEB-INF\web.xml
    • Single server config: {cfroot}\wwwroot\WEB-INF\web.xml
  2. Locate the following block of code and copy it to the clipboard:

    <servlet-mapping id="coldfusion_mapping_6"> <servlet-name>CfmServlet</servlet-name> <url-pattern>*.cfm</url-pattern> </servlet-mapping>

  3. Create a duplicate of the code block by pasting it below the original.
  4. Modify the duplicate code as follows:

    <servlet-mapping id="coldfusion_mapping_14"> <servlet-name>CfmServlet</servlet-name> <url-pattern>*.html</url-pattern> </servlet-mapping>


    Make sure the ID of the servlet-mapping tag is unique, preferably "coldfusion_mapping_XX".

  5. Save the file.
  6. Restart ColdFusion.

Modify the file

In addition to the configuration edits to web.xml and IIS, you must edit the file:


Include *.html.


Any changes to the connector configuration undo the changes made to the file.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy