ProxyPass and tomCat

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

I have a subdomain pointing to a VirtualHost config as follows:

<VirtualHost *:80>
   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

    ProxyPass /
    ProxyPassReverse /
    SetEnv proxy-nokeepalive 1


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">


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

any ideas?

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#">
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.