mod_proxy mod_rewrite and cookies rewriting

mod_proxy mod_rewrite and cookies rewriting

am 23.09.2002 17:07:47 von Maurizio Marini

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

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

i search:
http://marc.theaimsgroup.com/?l=3Dapache-httpd-users&w=3D2&r =3D1&s=3Drewr=
ite+cookie&q=3Db
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
- --=20
Maurizio Marini=09
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9jy5D4Q/49nIJTlwRAnhTAJ9wfpf9yjcq4vq4sk5c9bucGxH7TwCb BHF7
SYuMayHnUTCkpUC4KgtIan4=3D
=3DPMdx
-----END PGP SIGNATURE-----

Re: mod_proxy mod_rewrite and cookies rewriting

am 25.09.2002 09:50:29 von Graham Leggett

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

mod_proxy, cookies rewriting and ProxyPassCookie

am 04.10.2002 09:18:17 von Maurizio Marini

-----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,=20

Hi Graham,
first of all thnx for your quick answer, your help is always very appreci=
ated.
Coming to subjet, i've applied ProxyPassCookie in 1.3.23-14 (sigh! this i=
s the=20
last in redHat :((( ) paching mod_proxy with=20
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 av=
oid=20
problems with reversing more than one cookie at one time

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

thnx in advance
brgds
m.

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

iD8DBQE9nUC54Q/49nIJTlwRAgqKAJ9UtEVrgL6TXCmh1TNiO8eMJl5iJQCf VVZf
1aC9p/W0UQhEhCHnXQDVivU=3D
=3DvrlY
-----END PGP SIGNATURE-----