ProxyPass and tomCat

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

Question by:arndale65
    1 Comment

    Accepted Solution

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Title # Comments Views Activity
    tomcat LDAP authentication issue 3 109
    Problem to get function 52 67
    PHP Register global 21 59
    Website URL redirection 10 32
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video discusses moving either the default database or any database to a new volume.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now