This is on centos7 + apache 2.4 + lucee 4.5;
In /etc/httpd/conf/httpd.d (i.e, your main apache config file) I've added
After:
Include conf.modules.d/*.conf
LoadModule rewrite_module modules/mod_rewrite.so
In /etc/httpd/conf.d/vhosts.conf (i.e, where you might have v hosts defined), added:
DirectoryIndex rewrite.cfm index.cfm index.html
And for each site:
<VirtualHost *:80>
DocumentRoot /var/www/foo/html/public
<Directory "/var/www/foo/html/public">
Options Indexes FollowSymLinks
Require all granted
AllowOverride All
</Directory>
</VirtualHost>
In /opt/lucee/tomcat/conf/web.xml
I've added rewrite.cfm:
ie.
<!-- Mappings for the Lucee servlet -->
<servlet-mapping>
<servlet-name>CFMLServlet</servlet-name>
<url-pattern>*.cfm</url-pattern>
<url-pattern>*.cfml</url-pattern>
<url-pattern>*.cfc</url-pattern>
<!-- Basic SES Mappings -->
<url-pattern>/index.cfc/*</url-pattern>
<url-pattern>/index.cfm/*</url-pattern>
<url-pattern>/rewrite.cfm/*</url-pattern>
<url-pattern>/index.cfml/*</url-pattern>
</servlet-mapping>
Then restart everything.
That works for me, YMMV.