• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Coldfusion 10 IIS (Windows 7) to process .htm

Community Beginner ,
May 18, 2012 May 18, 2012

Copy link to clipboard

Copied

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?

Views

2.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 21, 2012 May 21, 2012

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 21, 2012 May 21, 2012

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 24, 2012 May 24, 2012

Copy link to clipboard

Copied

No I have not.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 25, 2012 May 25, 2012

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 12, 2012 Jun 12, 2012

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 12, 2012 Jun 12, 2012

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 12, 2012 Jun 12, 2012

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation