- Multi-server config: {jrun_root}\servers\htmlMappings\cfusion.ear\cfusion.war\WEB-INF\web.xml
- Single server config: {cfroot}\wwwroot\WEB-INF\web.xml
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
-
In a text editor, open web.xml from one of the following locations:
-
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>
-
Create a duplicate of the code block by pasting it below the original.
-
Modify the duplicate code as follows:
<servlet-mapping id="coldfusion_mapping_14"> <servlet-name>CfmServlet</servlet-name> <url-pattern>*.html</url-pattern> </servlet-mapping>
NoteMake sure the ID of the servlet-mapping tag is unique, preferably "coldfusion_mapping_XX".
-
Save the file.
-
Restart ColdFusion.
Modify the uriworkermap.properties file
In addition to the configuration edits to web.xml and IIS, you must edit the uriworkermap .properties file:
{CF-INSTALL_DIR}\config\wsconfig{MAGIC-NUMBER}\uriworkermap.properties
Include *.html.
Any changes to the connector configuration undo the changes made to the file.