(Newbie) how to make lucee available to all virtualhosts in linux?

Greetings Lucee-nation!

So, I’m a double newbie in this situation. I’m a Windows guy trying to
test out AWS (Amazon Linux)…I’m also an ACF guy trying to test out Lucee.
I like what I’m seeing so far, but it’s a perfect storm for a million
questions!

I’ve installed Lucee 4.5.2.018 using the Linux(64b) installer with Tomcat
and mod_cfml on Amazon Linux…no errors. I’ve been able to hook it up to
Amazon RDS. If I place my CFM files in the Lucee default folder
(/opt/lucee/tomcat/webapps/ROOT)…it works great.

Now, I’m trying to place my app into the web root (/var/www/html). I’ve
updated httpd.conf to add my virtual host:

<VirtualHost *:80>
ServerName amz.mywebsite.com
DocumentRoot “/var/www/html/myfolder”

Double post…sorry folks.

Here’s the answer:
https://groups.google.com/forum/#!topic/lucee/YL9WLnH7cvEOn Thursday, February 11, 2016 at 9:48:07 AM UTC-5, JD Yeiter wrote:

Greetings Lucee-nation!

So, I’m a double newbie in this situation. I’m a Windows guy trying to
test out AWS (Amazon Linux)…I’m also an ACF guy trying to test out Lucee.
I like what I’m seeing so far, but it’s a perfect storm for a million
questions!

I’ve installed Lucee 4.5.2.018 using the Linux(64b) installer with Tomcat
and mod_cfml on Amazon Linux…no errors. I’ve been able to hook it up to
Amazon RDS. If I place my CFM files in the Lucee default folder
(/opt/lucee/tomcat/webapps/ROOT)…it works great.

Now, I’m trying to place my app into the web root (/var/www/html). I’ve
updated httpd.conf to add my virtual host:

<VirtualHost *:80>
ServerName amz.mywebsite.com
DocumentRoot “/var/www/html/myfolder”

From what I understand, when I create this virtual host in httpd.conf,
mod_cfml should do whatever it needs to do to make Tomcat recognize the
site. BUT, when I try to access one of my cfm files in
/var/www/html/myfolder, I get this:

Lucee 4.5.2.018 Error (missinginclude)
Message Page /tools/testing/testcust.cfm
[/opt/lucee/tomcat/webapps/ROOT/tools/testing/testcust.cfm] not found
Java Stacktrace Page /tools/testing/testcust.cfm
[/opt/lucee/tomcat/webapps/ROOT/tools/testing/testcust.cfm] not found

QUESTION:

I get that this is telling me that any request for a cfm file will
automatically route to the lucee default. What do I need to do to make it
so EVERY site can process cfm, regardless of where it’s located?

Thanks for your help
-JD