Unknown folders under C:\lucee\tomcat\conf\Catalina

Julian, it’s very simple. You create a directory for each hostname in the following format:

$CATALINA_BASE/conf/[engine-name]/[hostname]/

$CATALINA_BASE is your Tomcat instance config directory (see my post with accompanying video on the subject at Rasia - Lucee and CFML Expert Support)

[engine-name] by default is Catalina

[hostname] is the hostname that Tomcat is listening on, e.g. localhost, blog.simplicityweb.co.uk, etc.

That’s the reason that the OP sees all of the sub-directories inside {tomcat}/conf/Catalina. In the absence of these directories, Tomcat creates them on the fly.

Inside that directory you will put a file for each Context in the format of [context-name].xml. For the default context you will use ROOT.xml.

So for your blog site, you would create the file

/{tomcat}/conf/Catalina/blog.simplicityweb.co.uk/ROOT.xml

That XML file can be as simple as an empty <Context /> element which will use all of the defaults, or define custom configurations for the Context, e.g.

<Context docBase="/srv/www/simplicityweb-blog">
  <!-- more configurations can go here !-->
</Context>

Reference: Apache Tomcat 9 Configuration Reference (9.0.73) - The Context Container

2 Likes