I've created a separate, individual instance of OpenBD in Tomcat, but the cgi.SCRIPT_NAME variable still includes the webapp directory as the path's root when Proxied. Here's my M.O.

Rename a copy of "openbd.war" to "foo.war" and dropped it into Tomcat's webapps dir.
Tomcat deploys a running instance of application "foo".
Add the following to Tomcat's "conf/server.xml" file:

<Host name="www.mydomain.com">
<Context path="" docBase="/usr/local/tomcat/webapps/foo/" />
</Host>

Add the following to /etc/apache2/sites-available/default:

<VirtualHost *:80>
       ServerName www.mydomain.com
       ProxyPass / http://96.xxx.152.xxx:8080/foo/
       ProxyPassreverse / http://96.xxx.152.xxx:8080/foo/
       HostnameLookups Off
</VirtualHost>

(Repeat above using Proxy: "ajp://96.xxx.152.xxx:8009/foo/", get the same result.)

Place a file "foo/index.cfm" which contains:
<cfdump var="#cgi.SCRIPT_NAME#"><cfabort />

1) Point browser to www.mydomain.com and see: "/foo/index.cfm"
2) Point browser to 96.xxx.152.xxx:8080/foo/ and see: "/foo/index.cfm"

I think the correct value should be "index.cfm" at least in version 1)
Does anyone know where my config went amiss?
Is there an Apache mod or line I'm missing?

Al Holden

--
Open BlueDragon Public Mailing List
http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
official manual: http://www.openbluedragon.org/manual/
Ready2Run CFML http://www.openbluedragon.org/openbdjam/

mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to