Changing Lucee ROOT Directory

I have been recently working with Lucee (the sucessor of Railo, an Open Source CFML Implementation).

It is a great. Lucee works way better than Railo :)

I had the need to change my ROOT for some tests, so I'm posting how to do it, because I will probably forget about it in a couple of hours.

So here are the steps:

  1. First go to the conf directory, under the Lucee install dir.

  2. Open the server.xml file.

  3. Look for an entry like:

   <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
        <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" />
      </Host>
  1. And just add little <Context ...> line:

So your host section will look like:

   <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
        <Context path="" docBase="/Users/mauriciorojas/sometest"/>

        <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" />
      </Host>

And remember to restart your Lucee server. And that is all.