Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a file extension for CF to process

CF Server

Adding a file extension for CF to process

by  webmigit  Posted    (Edited  )
This information is sometimes not easy to find and I think a lot of developers use it so here goes:

This is a direct quote from peter1548 of Macromedia's Cold Fusion Support Forums: http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=7&threadid=836272
http://www.macromedia.com/cfusion/webforums/forum/index.cfm?nocookies=yed

"How to Make Cold Fusion Process .html Files

Tested and working in CF5 and CFMX!

Start up IIS
Go into the web site properties
Select the ôHome Directoryö û ôConfigurationö
Look for the .cfm entry
(If you are running CF5 with default settings it is C:\CFUSION\BIN\ISCF.DLL - If you are running CFMX with default settings it is C:\CFusionMX\runtime\lib\wsconfig\1\jrun.dll).
ôAddö new entry. Executable should be the value above, extension should be .htm, .html, etc.
ôApplyö or ôOKö and youÆre done.

If youÆre running MX, one extra step is required:
Stop the CFMX app server service
Open the \cf_root|wwwroot\WEB-INF\web.xml in a text editor.
Search for servlet-mapping and then add the following two mappings:

Code:
<servlet-mapping>
<servlet-name>CfmServlet</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>CfmServlet</servlet-name>
<url-pattern>*.html/*</url-pattern>
</servlet-mapping>

Start the CFMX app server service"
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top