Help configuring Lucee document root


I would like to ask for help configuring the application document root. I’ve spent many hours on this task, that should be relatively simple. Please help, I am stuck.

My company document root must be located at: /web_root

I am using Apache mod_cfml
In httpd.conf I have:

Listen 80
DocumentRoot "/web_root"

<Proxy *>
Allow from
Allow from 10.100.100.*
ProxyPreserveHost On
ProxyPassMatch ^/(.+\.cf[cm])(/.*)?$ ajp://appsrv:8009/lucee-$1$2

Lucee is installed at: /var/lib/tomcat/webapps/lucee-

In tomcat’s server.xml I have:

     <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

        <Context path="" docBase="/web_root"/>

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />


When I navigate to Apache http://appsrv/test2.cfm I get Lucee Error with a message:
Page /test2.cfm [/var/lib/tomcat/webapps/lucee-] not found

When I navigate to Tomcat’s http://appsrv:8080/test2.cfm I get:

Remote_Addr is:#CGI.REMOTE_ADDR#

The tomcat serves the page but it doesn’t pass it to Lucee to process the ColdFusion.

/web_root/test2.cfm is:

<head> <title>TEST2</title> </head>
<cfoutput>Remote_Addr is:#CGI.REMOTE_ADDR#</cfoutput>

I don’t have a requirement to use Apache, I would be good with just Tomcat server, if that is possible.

OS: Red Hat Enterprise Linux Server release 7.6 (Maipo)
Java Version: openjdk version “1.8.0_181”
Tomcat Version: 7.0.76
Apache Version: 2.4
Lucee Version:

First, start with getting Tomcat working how you want it to. Adding Apache into the mix before you have Tomcat working just complicates things.

It looks like you’re trying to set up Lucee using a war install? I would actually recommend using a common-class install (like what the Lucee Installer gives you), as it’s much easier to work with.

Hmm… I know the installers were made and uploaded. I am not sure why they’re not showing up on the Lucee site. I might ping some of the Lucee guys on that. Backup copies of the installers are here if you want:

Your server.xml config probably isn’t working because of how Lucee is deployed. Based on your error message I think the Lucee servlet is grabbing it and trying to resolve it to the context it was deployed in (which makes sense). Again, if you used a common-class deployment, your server.xml config would work like you’re expecting it to.

I don’t know if there is any documentation out there that describes how to do a common class install. There was some back in the Railo days but most people just use the installer. Basically, you load the Lucee JAR using Tomcat’s “common.loader” in the file (IE: common class install). You then update Tomcat’s web.xml file with the Lucee servlet definitions. This makes Lucee available to all contexts within Tomcat rather than just the one context that you get from a WAR deployment.

From there, you can configure multiple contexts in your server.xml file and they all will have access to Lucee.

Or… you could just use the installer which does all that for you. =P

Hope this gives you some place to start from anyway.

Installing using the installer worked. I can now access CF files from /web_root/.
I appreciate your help!

1 Like