Sorry for letting this thread languish, but I'm back and trying to get
this to work again. Here's a recap:
My Tomcat / OpenBD basic setup gives me default site URLs like
[ip_address]:8080/openbd/site1/index.cfm AND
[ip_address]:8080/openbd/site2/index.cfm
I can use Apache's ProxyPass OR Tomcat's AJP to serve up web sites at
custom URLs like
www.[sitedomain1].com AND www.[sitedomain2].com
THE PROBLEM is the cgi variables.
I can add "ProxyPreserveHost", which will fix cgi.HTTP_HOST (Thanks
Matthew).
But SCRIPT_NAME, still returns a value like: /openbd/[site1]/index.cfm
AND /openbd/[site2]/index.cfm
I tried all the revisions that Matt published at http://bit.ly/9x4pU,
but none will produce a path that reflects the proxied (context) root.
The path below /webapps/ is returned instead.
The cgi variables like path_info and script_name are used by countless
applications to determine asset paths and links.
Here's my test script:
<cfdump var="#cgi#" />
Call this code from your proxied OpenBD/Apache/Tomcat application, and
see if cgi.script_name has the correct "web root" context, starting at
the server's path for your domain's home directory, not your Tomcat's
webapps directory.
If so, please provide the details on how the heck you did that!
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