Hi everyone,
While using the official Lucee Docker image with Tomcat 11 (tag: lucee/lucee:7.1.2.191-tomcat11.0-jre25-temurin-noble), I noticed that direct HTTP requests to .cfs (CFML Script) files fail to be processed by Lucee.
Although .cfs templates are enabled and supported out of the box in Lucee, the *.cfs URL pattern is missing from the CFMLServlet mapping in Tomcat’s /usr/local/tomcat/conf/web.xml.
To get .cfs files working properly, I had to manually update /usr/local/tomcat/conf/web.xml to include *.cfs (and /index.cfs/* for SES URLs):
<servlet-mapping>
<servlet-name>CFMLServlet</servlet-name>
<url-pattern>*.cfm</url-pattern>
<url-pattern>*.cfml</url-pattern>
<url-pattern>*.cfc</url-pattern>
<url-pattern>*.cfs</url-pattern>
<url-pattern>/index.cfc/*</url-pattern>
<url-pattern>/index.cfm/*</url-pattern>
<url-pattern>/index.cfml/*</url-pattern>
<url-pattern>/index.cfs/*</url-pattern>
</servlet-mapping>