ProxyPass and tomCat

I have a linux server running Open Blue Dragon Jam (Apache 2.2 + TomCat essentially).

I have a www.mysite.com subdomain pointing to a VirtualHost config as follows:

<VirtualHost *:80>
   ServerName www.mysite.com
   DocumentRoot /opt/openbdjam/webroot1/push20

   ScriptAlias /digin-cgi/ "/opt/openbdjam/webroot1/digin-cgi"

   Options FollowSymLinks

   XBitHack on

   ProxyRequests Off
   ProxyVia Off
   ProxyPreserveHost On

   # Set the permissions for the proxy
   <Proxy *>
     AddDefaultCharset off
     Order deny,allow
     Allow from all
   </Proxy>

    ProxyPass / http://127.0.0.1:8080/push20/
    ProxyPassReverse / http://127.0.0.1:8080/push20/
    SetEnv proxy-nokeepalive 1

</VirtualHost>

Open in new window


Problem is that whilst i can access most page correctly and links between site pages work fine most of the time

However i notice that some links come back as as a result of a <cflocation > - e.g.:

<cflocation url="index.cfm?promotion=#url.promotion#" addtoken="No">

gives:

http://www.mysite.com/push20/dev/index.cfm?prn=741

The 'push20' bit shouldn't be there (its the DocumentRoot) but aftger this redirect it appears.

any ideas?
TIA

arndale65Asked:
Who is Participating?
 
arndale65Author Commented:
solution is to use: a 301 - not 302 in place of cflocation

<cfheader statuscode="301" statustext="Moved Permanently">
<cfheader name="Location" value="#application.baseurl#index.cfm?promotion=#url.promotion#">
<cfabort>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.