Avatar of arndale65
arndale65

asked on 

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

Web ServersApache Web Server

Avatar of undefined
Last Comment
arndale65
ASKER CERTIFIED SOLUTION
Avatar of arndale65
arndale65

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Web Servers
Web Servers

A web server refers to the software that helps to deliver web content that can be accessed either through the Internet or through an intranet. The primary function of a web server is to store, process and deliver web pages to clients. The communication between client and server takes place using the Hypertext Transfer Protocol (HTTP). The most common use of web servers is to host websites, but there are other uses such as gaming, data storage, running enterprise applications, handling email, FTP, etc.

33K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo