ProxyPass and tomCat

Posted on 2011-10-05
Medium Priority
Last Modified: 2013-12-24
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

    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?

Question by:arndale65
1 Comment

Accepted Solution

arndale65 earned 0 total points
ID: 36916244
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#">

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month16 days, 9 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question