Desperately need help in finalizing Lucee config
While public websites do work now on ports 443 & 80 and I can log into the Lucee Server Admin console [ http://127.0.0.1:8888/lucee/admin/server.cfm ], when I click any of the individual domains in the Overview list to access their respective Web Admins (web.cfm), I get a missing file error as they all get automatically mapped by default to webapps/ROOT instead of their respective lucee-admin.lar (Lucee archive files)
Label URL (actual URL Link it opens up) Webroot Configuration File
www.mysite.com https://www.mysite.com:443 https://www.mysite.com/lucee/admin/web.cfm /srv/webroot/mysite.com/www /opt/cf-lucee/config/web/www.mysite.com/.CFConfig.json
sub1.mysite.com https://sub1.mysite.com:443 https://sub1.mysite.com/lucee/admin/web.cfm /srv/webroot/mysite.com/sub1 /opt/cf-lucee/config/web/sub1.mysite.com/.CFConfig.json
6f3fc09348133abe54666dc690fccf65 http://127.0.0.1:8888 http://127.0.0.1:8888/lucee/admin/web.cfm /opt/cf-lucee/tomcat/webapps/ROOT /opt/cf-lucee/config/web/6f3fc09348133abe54666dc690fccf65/.CFConfig.json
(last entry is the Lucee Server Admin console on localhost:8888, which works)
The error I get when I try to access any of the 2 domains/apps above:
Lucee 6.2.0.28-SNAPSHOT Error (missinginclude)
Message Page [/www.mysite.com/lucee/admin/web.cfm] [/opt/cf-lucee/tomcat/webapps/ROOT/www.mysite.com/lucee/admin/web.cfm] not found
Mapping /
Detail File not found: /opt/cf-lucee/tomcat/webapps/ROOT/www.mysite.com/lucee/admin/web.cfm
This is because instead of mapping
https://www.mysite.com:443 -> https://www.mysite.com/lucee/admin/web.cfm -> /opt/cf-lucee/config/web/www.mysite.com/context/lucee-admin.lar
the last redirect automatically redirect to
/opt/cf-lucee/tomcat/webapps/ROOT/www.mysite.com/lucee/admin/web.cfm
My mappings are the default ones, havenāt added any other mappings:
Virtual Resource Archive /lucee-server {lucee-server}/context/ /lucee/admin {lucee-config}/context/admin {lucee-config}/context/lucee-admin.lar -> /opt/cf-lucee/config/web/6f3fc09348133abe54666dc690fccf65/context/lucee-admin.lar /lucee {lucee-web}/context/ {lucee-web}/context/lucee-context.lar
My server.xml config at /opt/cf-lucee/tomcat/conf/server.xml
<Host name="www.mysite.com" appBase="webapps" deployXML="false" deployOnStartup="true" autoDeploy="true" unpackWARs="true" xmlValidation="false" xmlNamespaceAware="false" >
<Context path="" docBase="/srv/webroot/mysite.com/www" reloadable="true" debug="0" />
<Alias>*.mysite.com</Alias>
<Alias>mysite.com</Alias>
</Host>
<Host name="sub1.mysite.com" appBase="webapps" deployXML="false" deployOnStartup="true" autoDeploy="true" unpackWARs="true" xmlValidation="false" xmlNamespaceAware="false" >
<Context path="" docBase="/srv/webroot/mysite.com/sub1" reloadable="true" debug="0" />
</Host>
My web.xml at /opt/cf-lucee/tomcat/conf/web.xml
<init-param>
<param-name>lucee-web-directory</param-name>
<param-value>/opt/cf-lucee/config/web/{web-context-label}/</param-value>
<description>Lucee Web Directory (for Website-specific configurations, settings, and libraries)</description>
</init-param>
So what am I doing wrong? What am I missing? Read all the documentation, still canāt make it work on my own. Ideally without having to add separate mapping to all my sites & subdomains.
Please, please advise!
OS: Alma Linux v.9.4 (5.14.0-427.26.1.el9_4.x86_64) 64bit
Java Version: 21.0.3 (Eclipse Adoptium) 64bit
Tomcat Version: Apache Tomcat/9.0.71
Lucee Version: Lucee 6.2.0.30-SNAPSHOT