Skip to main content
Participant
May 18, 2012
Question

Coldfusion 10 IIS (Windows 7) to process .htm

  • May 18, 2012
  • 4 replies
  • 2760 views

I Think I have the correct stuff done in the C:\ColdFusion10\cfusion\wwwroot\WEB-INF\web.xml  ..

added the following lines...

<servlet-mapping id="coldfusion_mapping_16">

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

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

</servlet-mapping>

<servlet-mapping id="coldfusion_mapping_17">

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

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

</servlet-mapping>

I went to the IIS Manager and the Handler Mappings screen and added a Script Map for *.htm

executiable C:\ColdFusion10\config\wsconfig\2\isapi_redirect.dll .  At first I was getting a 500 error.

Restarted machine and I just get a blank page with going to a htm page.

Any suggestions?

    This topic has been closed for replies.

    4 replies

    Community Manager
    June 12, 2012

    Hi,

    Remove the "htm" mapping from IIS handler mapping and web.xml.

    Save the file

    Re-start IIS and CF

    Access the test.htm page and it would work for you.

    IIS handles html/htm extension files by default. If you go to your IIS handler mappings, we don't see any html mapping, if we keep a test.html page on IIS webroot, still ISS processes it.

    HTH.

    Rg,

    Spsb

    Inspiring
    June 12, 2012

    The solution from spsb84 does not work.  It serves the htm files, but does NOT process the ColdFusion code in the files.  It just serves HTML and ignores the ColdFusion.

    This solution works for me... http://www.webtrenches.com/post.cfm/processing-html-htm-or-other-files-in-coldfusion-10

    Community Manager
    June 12, 2012

    Hi tSpark,

    The post was updated as per the "execution of htm pages by IIS".

    We tested by just creating a test htm page {with dummy data and no CF code}, placing it on IIS and executing it.

    But, if it is related to CF code in htm page and the link-->http://www.webtrenches.com/post.cfm/processing-html-htm-or-other-files-in-coldfusion-10 serves good, then, thanks!!!

    Rg,

    Spsb

    Inspiring
    May 25, 2012

    I have this same issue.  If someone finds the solution please post to this thread.  I just get a blank page.

    Participant
    May 21, 2012

    I see the web server WIndows 7. DId you get this working?

    Participant
    May 24, 2012

    No I have not.

    Participant
    May 21, 2012

    Did you find an answer to this? What web server are you using?