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

<Lucee Install Dir>/conf/web.xml

From:

<servlet-mapping>
     <servlet-name>CFMLServlet</servlet-name>
     <url-pattern>*.cfc</url-pattern>
     <url-pattern>*.cfm</url-pattern>
     <url-pattern>*.cfml</url-pattern>
     <url-pattern>/index.cfc/*</url-pattern>
     <url-pattern>/index.cfm/*</url-pattern>
     <url-pattern>/index.cfml/*</url-pattern>
</servlet-mapping>

To:

<servlet-mapping>
     <servlet-name>CFMLServlet</servlet-name>
     <url-pattern>*.cfc</url-pattern>
     <url-pattern>*.cfm</url-pattern>
     <url-pattern>*.cfml</url-pattern>
     <url-pattern>*.htm</url-pattern>
     <url-pattern>*.html</url-pattern>
     <url-pattern>/index.cfc/*</url-pattern>
     <url-pattern>/index.cfm/*</url-pattern>
     <url-pattern>/index.cfml/*</url-pattern>
</servlet-mapping>

3. Start Lucee