Ubuntu 20.04 LTS (brand new instance)
Open JDK 15.0.1
Tomcat 9.0.39
Lucee 5.3.7.47 WAR file
Never encountered this before - Setting up a new site. I have quickly and successfully installed the above stack (OS, JDK, Tomcat, Lucee). Open JDK, Tomcat and Lucee are in:
/opt/java
/opt/tomcat
/opt/tomcat/webapps
Everything is working fine.
So I want to create two sites (multi homed) and I’ve done this several times. No problem.
Stop Tomcat, and then
cp -pR /opt/tomcat/webapps/ROOT/WEB-INF /var/www/www.SiteOne.com/web/WEB-INF
Restart Tomcat. Everything is fine, new site works, separate Lucee instance is perfect.
Time for site 2.
Stop Tomcat, and then
cp -pR /opt/tomcat/webapps/ROOT/WEB-INF /var/www/www.SiteTwo.com/web/WEB-INF
Restart Tomcat. Again, all previous installs are fine and working.
But… Site Two… when I try to get to the Lucee admin (https://www.SiteTwo.com/lucee/admin/server.cfm), I get a 404 error.
So In
/opt/tomcat/work/Catalina and in /opt/tomcat/conf/Catalina
All the right directories are there (main install, SiteOne, SiteTwo)
I’ve tried many things. I’ve tried deleting all of it, rebooting, reinstalling Lucee, same problem.
I’ve tried creating only SiteTwo and not creating SiteOne, same problem.
Permissions are tomcat:tomcat as on every other install, folders are 0755 and files are 0644 on all installs.
Anyone ever have this happen?