You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by pt...@intec.ugent.be on 2009/04/01 16:39:30 UTC

Re: [users@httpd] Rewriting Response header from proxied server with Apache 2.0

> On Wed, Apr 1, 2009 at 2:02 PM,  <pt...@intec.ugent.be> wrote:
>
>> However, the proxied application has "login" functionality and thus sets
>> a
>> cookie.
>>
>> While I have been working on the revrese proxy setup for the last couple
>> of days, I believe I'm now stuck: the proxied app is generating cookies
>> with domain "remote", which I want to replace with domain "proxy" so
>> that
>> the client's browser will send the crorect cookie after logging in (as
>> opposed to being redirected to the login screen every time...).
>
> Have you looked at
> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreversecookiedomain
>
> Krist


Hello Krist,


Yes I have: it's for Apache 2.2 and does not have an equivalent in Apache
2.0 it seems.

So my question boils down to: what is a valid Apache 2.0 workaround for
the functionality offered by proxypassreversecookiedomain and
proxypassreversecookiepath, given that I cannot upgrade to Apache 2.2 and
cannot modify the proxied server (e.g. change anything about the generated
cookies) ?


Kind regards,
Pieter
>
>
>
> --
> krist.vanbesien@gmail.com
> krist@vanbesien.org
> Bremgarten b. Bern, Switzerland
> --
> A: It reverses the normal flow of conversation.
> Q: What's wrong with top-posting?
> A: Top-posting.
> Q: What's the biggest scourge on plain text email discussions?
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Rewriting Response header from proxied server with Apache 2.0

Posted by André Warnier <aw...@ice-sa.com>.
pthyseba@intec.ugent.be wrote:
[...]
> So my question boils down to: what is a valid Apache 2.0 workaround for
> the functionality offered by proxypassreversecookiedomain and
> proxypassreversecookiepath, given that I cannot upgrade to Apache 2.2 and
> cannot modify the proxied server (e.g. change anything about the generated
> cookies) ?
> 
It seems that once again, the much-maligned language named perl, and its 
much underestimated mod_perl module, could be of help.
Do you know perl ?
Is installing mod_perl on the proxy an option ?

Now I must add, the question is, if mod_perl would be an option, then 
why would upgrading the Apache 2.0 to 2.2 not be one ?
All being considered, it's probably easier than adding mod_perl to the 
existing server.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Rewriting Response header from proxied server with Apache 2.0

Posted by Nick Kew <ni...@webthing.com>.
On 1 Apr 2009, at 15:39, pthyseba@intec.ugent.be wrote:
>
> Yes I have: it's for Apache 2.2 and does not have an equivalent in  
> Apache
> 2.0 it seems.

Somewhere in bugzilla (issues.apache.org) there's a patch for 2.0.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org