httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ranjan, Rajiv" <>
Subject [users@httpd] RE: Apache Reverse proxy
Date Fri, 12 Aug 2005 13:11:21 GMT
Hi Benoit,

Alex on this group suggested me to go with ProxyPass instead of
using rewrite rule. I tried that and it worked for me.

Here is the text Alex had send me - (Maybe it would help you as well)

	ProxyVia off
	Redirect /

      <Location /wps>

Works for me, should work for you too. could be an
alias for or vice-versa since from what I understand,
they both share the same IP address.

As pointed out previously, your problem lies in the domain of the
cookies served by WAS. My guess is that those cookies are in the domain, whereas the browsers access the application in the domain in which the cookies would not apply.

As all the users are located only in the domain, you can
change the domain name of WAS through the WAS Administrative Console
Security->Authentication Mechanisms->LTPA. Set the value of the "Domain
Name" field to "". This would set the domain of the JSESSIONID
cookie to a value which would allow the client browsers to include the
cookie in the requests.

If you don't, the browser will not include the cookies in the requests.

Another way of doing this would be to use the
ProxyPassReverseCookieDomain directive:


Unfortunately this directive has not been implemented in any release of
Apache 2.0. You would need to apply patch 11915 (see Bugzilla bug report

In order to debug such problems, if you use MSIE I would strongly urge
you to use a tool like HTTPWatch (
which will allow you to see the headers and cookies in requests as well
as in responses, whether a page was served from cache, etc. It gives you
a very nice insight into all requests and responses. I you use Mozilla,
I understand there is a similar feature called something like "Live HTTP

Another way of investigating such problems might be using a network
sniffer like Ethereal, or a proxy like Burp. That's would be my second
choice though, because a browser plug-in is a lot more user-friendly.

For a little cookie tutorial, look at


-----Original Message-----
From: [] 
Sent: Friday, August 12, 2005 6:34 PM
To: Ranjan, Rajiv
Subject: Apache Reverse proxy

                  Hi Rajiv,

I'm searching over the web about my own problem with using apache as a
reverse proxy and obviouly you've got the same problem as me.
"How to use apache as cookie gateway ?"
(The docs I found about my problem was always your case)

After running google a lot and testing a lot, I think that apache 2.0 is
not able to do so. The mod_rewrite can only work on URL and not on the
content of the HTTP flow.

Did you finally succed to solve the problem without using Apache 2.1
version ?
If Yes, what's the solution ?

Best regards Benoit

rue Latouche Lambert

Tel : +33 (0)2 23 28 35 20


This e-mail is from outside Tesco - check that it is genuine. Tesco may
monitor and record all e-mails.

---- Disclaimer ----
This is a confidential email.  Tesco may monitor and record all emails.  The views expressed
in this email are those of the sender and not Tesco.  
Tesco Stores Limited, Tesco House, Delamare Road, Cheshunt, Herts, EN8 9SL: company number

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message