Lucee Web Contexts set to wrong domains for new Lucee domains

New to Lucee and having a strange issue I would appreciate any thoughts on.

I installed Lucee 5.4.3.16 on AlmaLinux 8 with the mod_cfml for Apache 2.4. Note: this server has cPanel/WHM. It installed clean and runs fine (with a simple “Hello World” with time in an index.cfm) on domain1. I then created a domain2 using more complex CFML set of pages that used a MySQL datasource. Again, all worked as expected.

Then I created a 3rd domain3 and no matter what I do it appears to use the web context/docroot for domain1. If you go to a browser and type in https://domain3.com it servers up the index.cfm page from domain1. If you type in https://domain3.com/somepage.cfm (and it does not exist in domain1), the Lucee error panel is displayed with: Page /somepage.cfm [/home/domain1/public_html/somepage.cfm] not found (note is is showing the path for domain1, even though this is domain3.

The Web Contexts section of the Lucee Admin panel, for Web Root and Configuration File both contain the path information for domain1 (not domain3 as it should).

I looked and the public_html/domain3/WEB-INF directory does not exist. I created it with root permissions (Lucee is running as root), and it did not fix the issue.

Does anyone know how to resolve this?

Thanks!
Don

And the answer is: don’t forget to add the the <vhost … entries for the new domain in tomcat/conf/server.xml and then restart tomcat.

1 Like

Usually you shouldnt need to add anything manuallyto server.xml if you are using mod_cfml, because these entries would be handled by mod_cfml. But really cant say what happened in your setup. Good you worked it out.

Just to make sure: you restarted lucee?
In the tomcat/logs/ folder is a catalina.out file, did you check this file?

Do you have any security addons like AppArmor running?

Michael,

I did restart Lucee, but I did not check the catalina.out file. Looking at it now, I can not target the timeframe with certainty. I see a bunch of entries like:

01-Nov-2023 02:15:17.186 INFO [http-nio-8888-exec-8] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/opt/lucee/tomcat/conf/Catalina/domain3-com-httpd-confl877/ROOT.xml]
01-Nov-2023 02:15:17.190 WARNING [http-nio-8888-exec-8] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/opt/lucee/tomcat/conf/Catalina/domain3-com-httpd-confl877/ROOT.xml] with an external docBase means the directory [/opt/lucee/tomcat/webapps/ROOT] in the appBase will be ignored
01-Nov-2023 02:15:17.669 INFO [http-nio-8888-exec-8] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/opt/lucee/tomcat/conf/Catalina/domain3-com-httpd-confl877/ROOT.xml] has finished in [483] ms

I will watch more closely next domain I install.

Thanks to both you and Andreas for your replays!