Skip to main content
Participant
January 23, 2017
Question

parse .htm with coldfusion 2016?

  • January 23, 2017
  • 1 reply
  • 1546 views

I have just switched over to coldfusion 2016 on windows 2012 with IIS 8 and can't get the server to process .htm pages as .cfm. Just like in previous versions, I have added the following to the web.xml file with no success.

<servlet-mapping id="coldfusion_mapping_

        <servlet-name>CfmServlet</servlet-name>

        <url-pattern>*.htm/*</url-pattern>

    </servlet-mapping>

    <servlet-mapping id="coldfusion_mapping_89">

        <servlet-name>CfmServlet</servlet-name>

        <url-pattern>*.htm</url-pattern>

    </servlet-mapping>

This worked fine for coldfusion 9 and 10, but I can't find any documentation or posts with a solution for 2016. Any help would greatly be appreciated.

    This topic has been closed for replies.

    1 reply

    Charlie Arehart
    Community Expert
    Community Expert
    January 23, 2017

    Abmusashi, you can do it, but the steps are indeed different from CF10-forward, You need to edit the uriworkermap.properties file for your web connnector(s). See a post I did with more on the topic in general, and a pointer to another post with more details on the differences in CF10:

    Setting up ColdFusion to process html or other file extensions - Charlie Arehart's ColdFusion Troubleshooting Blog

    Let us know if this resolves things for you.

    /Charlie (troubleshooter, carehart. org)
    Participant
    January 23, 2017

    Thank you for this Charlie. I actually saw this earlier this morning and

    couldn't get any of it to work. Including the uriworkermap.properties. Had

    no luck with that either. I've done it in 8, 9 and 10 before, but for some

    reason I can't find any straight forward process for this.

    Is there something in IIS that I need to update regarding handler mapping?

    I've never had to do that in previous versions.

    Tony B.

    On Mon, Jan 23, 2017 at 10:17 AM, charlie@carehart.org <