Hi,
I would like to ask for help configuring the application document root. I’ve spent many hours on this task, that should be relatively simple. Please help, I am stuck.
My company document root must be located at: /web_root
I am using Apache mod_cfml
In httpd.conf I have:
Listen 80
DocumentRoot "/web_root"
<Proxy *>
Allow from 127.0.0.1
Allow from 10.100.100.*
</Proxy>
ProxyPreserveHost On
ProxyPassMatch ^/(.+\.cf[cm])(/.*)?$ ajp://appsrv:8009/lucee-5.3.4.77/$1$2
Lucee is installed at: /var/lib/tomcat/webapps/lucee-5.3.4.77
In tomcat’s server.xml I have:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="/web_root"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
When I navigate to Apache http://appsrv/test2.cfm I get Lucee Error with a message:
Page /test2.cfm [/var/lib/tomcat/webapps/lucee-5.3.4.77/test2.cfm] not found
When I navigate to Tomcat’s http://appsrv:8080/test2.cfm I get:
Remote_Addr is:#CGI.REMOTE_ADDR#
The tomcat serves the page but it doesn’t pass it to Lucee to process the ColdFusion.
/web_root/test2.cfm is:
<html>
<head> <title>TEST2</title> </head>
<body>
<cfoutput>Remote_Addr is:#CGI.REMOTE_ADDR#</cfoutput>
</body>
</html>
I don’t have a requirement to use Apache, I would be good with just Tomcat server, if that is possible.
OS: Red Hat Enterprise Linux Server release 7.6 (Maipo)
Java Version: openjdk version “1.8.0_181”
Tomcat Version: 7.0.76
Apache Version: 2.4
Lucee Version: 5.3.4.77