You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modproxy-dev@apache.org by Maurizio Marini <ma...@datalogica.com> on 2002/09/23 17:07:47 UTC

mod_proxy mod_rewrite and cookies rewriting

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
like many plp here, i'm wondering how can i rewrite cookies in a proxy-reverse & rewrite architecure

i search:
http://marc.theaimsgroup.com/?l=apache-httpd-users&w=2&r=1&s=rewrite+cookie&q=b
and i found many posts in this ml and in users,
none of them received valid answers

do you confirm that this is not feasible using official modules or should i read better?
Should one writing something by himself?
thnx in advance
(i hope Graham, "the god", is reading ;p)
byez
- -- 
Maurizio Marini	
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9jy5D4Q/49nIJTlwRAnhTAJ9wfpf9yjcq4vq4sk5c9bucGxH7TwCbBHF7
SYuMayHnUTCkpUC4KgtIan4=
=PMdx
-----END PGP SIGNATURE-----

mod_proxy, cookies rewriting and ProxyPassCookie

Posted by Maurizio Marini <ma...@datalogica.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 25 September 2002 09:50 am, Graham Leggett wrote:
 >Rewriting cookies is quite a tricky thing to do, as there are many ways
 >that Apache might "get it wrong" while trying to translate them, 

Hi Graham,
first of all thnx for your quick answer, your help is always very appreciated.
Coming to subjet, i've applied ProxyPassCookie in 1.3.23-14 (sigh! this is the 
last in redHat :((( ) paching mod_proxy with 
http://www.wede.de/sw/mod_proxy/apache_mod_proxy-cookie.diff

I used ProxyPassCookie to rewrite path in cookies with success
I should use 1.3.26 at least (as you suggest me in a previuos post) to avoid 
problems with reversing more than one cookie at one time

and i was wondering if 
1] what you wrote ("there are many ways that Apache might "get it wrong" while 
trying to translate them") does apply to this patch, too; 
2] this patch is not included in your official mod_proxy for the same reason

thnx in advance
brgds
m.

- -- 
Maurizio Marini
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9nUC54Q/49nIJTlwRAgqKAJ9UtEVrgL6TXCmh1TNiO8eMJl5iJQCfVVZf
1aC9p/W0UQhEhCHnXQDVivU=
=vrlY
-----END PGP SIGNATURE-----

Re: mod_proxy mod_rewrite and cookies rewriting

Posted by Graham Leggett <mi...@sharp.fm>.
Maurizio Marini wrote:

> like many plp here, i'm wondering how can i rewrite cookies in a proxy-reverse & rewrite architecure

Rewriting cookies is quite a tricky thing to do, as there are many ways 
that Apache might "get it wrong" while trying to translate them, which 
may result in a cookie's scope being larger than it should be, or just 
wrong. I'm still giving some thought to all of this though - I'll 
probably add a new directive allowing finer control over cookies and 
their scope.

The easiest way to get over any cookie related problems is to make sure 
that the URL on the backend is exactly the same as the URL on the 
frontend. This way any cookie set on the backend will have the correct 
scope on the frontend. This is the recommended approach in the meantime.

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."