No Webcontext created by 6.2 on Debian

Preface to say I am a long time Lucee user on Windows and have enough linux experience to get myself in trouble (which may be the case here…it’s been a while)

I’ve set up some debian VMs on proxmox and installed 6.2.0.321 on one of them and MySQL on another. The web & server admins load fine and I was able to create verified datasources pointing at the MySQL vm. So this part of my homelab setup is working fine and seems to indicate I didn’t mess up the install.

I have HOSTS set up on both my windows machine and the webserver to point homeApps.local to 192.168.1.147 but they resolve to the Apache2 Debian default page and http://homeapps.local/index.cfm is a 404.

For the life of me I can’t figure out why server admin isn’t picking up the VHost I set up in server.xml

<Host name="homeApps.local" appBase="webapps">
     <context-path="" docBase="/var/www/sites/homeApps">
<Alias> www.homeApps.local</Alias>
</Host>

My test index.cfm is at /var/www/sites/homeApps/index.cfm

I’ve restarted lucee_ctl multiple times

The only things that appears in server admin is the admin context

http://192.168.1.147:8888/lucee/admin/web.cfm | /opt/lucee/tomcat/webapps/ROOT

Is there something I have to do in linux to get mod_cfml to do it’s magic? Or is it something I’ve missed in setting up Apache2?

Or???

TIA

OS: Linux (6.1.0-33-amd64) 64bit
Java Version: 21.0.6
Tomcat Version: 10.1.39
Lucee Version: 6.2.0.321

Did you look in the Tomcat, Lucee or Apache logs?

Just wondering… in your server.xml host tag configuration I can see a dash inbetween the tags directive and the path attribute. Is that a typo?

<Host name="homeApps.local" appBase="webapps">
     <context-path="" docBase="/var/www/sites/homeApps">
<Alias> www.homeApps.local</Alias>
</Host>

Shouldn’t it be…

<Host name="homeApps.local" appBase="webapps">
     <context path="" docBase="/var/www/sites/homeApps">
<Alias>www.homeApps.local</Alias>
</Host>

Pretty sure that will break or Tomcat ignore the directive. There is also a space precending in the alias value. However, above you are using the context directive Are you using mod_cfml and that directive together? Wouldn’t that be a problem? If you want to deactivate mod_cfml and use another approach of setting up the web context , here is a walkthrough on windows in another (unrelated) post, which in Tomcat is pretty the same on linux:

1 Like

My suggestion is

change everything to lowercase, this is consistent with UNIX/LINUX configurations and overtime will save you hours of headaches.

in /etc/hosts

you should have two or three lines that are like this

::1 homeApps.local
127.0.0.1 homeApps.local
ExternalIP homeApps.local – ie 1.2.3.4 homeApps.local

1 Like