Processing ColdFusion using .htm and .html files with Lucee

If you want Lucee to use the .htm and .html file extensions instead of (or in addition to) .cfm and .cfml you can set this up in 3 quick steps.

1. Stop Lucee
2. Edit the web.xml file located at

/conf/web.xml

From:


     CFMLServlet
     *.cfc
     *.cfm
     *.cfml
     /index.cfc/*
     /index.cfm/*
     /index.cfml/*

To:


     CFMLServlet
     *.cfc
     *.cfm
     *.cfml
     *.htm
     *.html
     /index.cfc/*
     /index.cfm/*
     /index.cfml/*

3. Start Lucee

3 thoughts on “Processing ColdFusion using .htm and .html files with Lucee”

  1. Hi Chris, I followed these instructions, but Lucee processing html files. Are there any other steps? I tried in vain to add a script map to BonCodeIIS.dll.

    Are there any other steps missing?

    Thanks in advance.

  2. Thanks for the quick response. Actually, I got it to work by creating a managed handler instead. I just copied the one BonCode created for cfml and applied the pertinent HTML changes. See below:

    *.html

    BonCodeIIS.BonCodeCallHandler,BonCodeIIS,Version=1.0.0.0,Culture=neutral,PublicKeyToken=ad590a40d40745cf

    BonCode-Tomcat-HTML-Handler

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.