Custom File Extensions *

Hi Brook,

Did you install lucee with the boncode connector? Using uriworkermap.properties is for isapi_redirect.dll use. With boncode connector there shouldn’t be the need to edit the uriworkermap.properties file. I recommend installing Lucee with boncode connector. When installing lucee with the installer, it should ask you about boncode installation. I can really recommend that instead of ISAPI. For further reading about why, please read this http://www.boncode.net/boncode-connector

Then you usually need to do 3 things (when installed with boncode-connector):

  1. Add module-handler in IIS to point that .if files to lucee. That is as simple as copying/creating the .cfm/.cfc handler in the module handler section of IIS and changing the extension to “.if”

  2. Edit the path_to_tomcat/conf/web.cfm and add the url-pattern <url-pattern>*.if</url-pattern> in the servlet-mapping section of the CFMLServlet. It should look something like this afterwards:

   <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>
      <url-pattern>*.if</url-pattern>
  </servlet-mapping>
  1. Add the mime-mapping in the path_to_tomcat/conf/web.cfm
<mime-mapping>
        <extension>if</extension>
        <mime-type>text/html</mime-type>
 </mime-mapping>

There is no need to add web.xml in the WEB-INF. I would stop lucee/tomcat service, delete the WEB-INF and start lucee/tomcat service again. Tomcat/Lucee will recreate that when restarted.

Hope that helps.

1 Like