List Info

Thread: Re: ProxyAddXHeaders for mod_proxy




Re: ProxyAddXHeaders for mod_proxy
user name
2007-04-13 06:31:28
Hi,

looks like same patch works with the trunk out of the box.

However, attaching same patch against the trunk branch.

Short instructions to test it:

1. Apply the patch.
2. Compile httpd with mod_proxy and mox_rewrite enabled.
3. Add the following lines to httpd.conf:

ProxyRequests On
RewriteEngine on
RewriteCond % !^proxy:
RewriteRule ^(.*)$ http://%$1 [NS,L,P]

4. Test behaviour on remote (proxied) site:

* ProxyAddXHeaders Off -- no X-Forwarded-* headers present;
* ProxyAddXHeaders On -- X-Forwarded-* headers always
present.
* ProxyAddXHeaders ReverseOnly -- X-Forwarded-* headers
present only
in a reverse proxy request (this is the default and
behaviour is same
as without the patch).

On 4/4/07, Jim Jagielski <jimjagunet.com> wrote:
>
> On Feb 28, 2007, at 11:59 AM, Dziugas Baltrunas wrote:
>
> > Hi, list,
> >
> > attaching same patch with small correction to the
one submitted
> > previously (was unnecessary double check for
PROXYREQ_REVERSE).
> >
> > Patch is for httpd-2.2.x branch.
> >
>
> Patches should be against trunk. Once approved
> and "proven" in the trunk environ, then they
> may be proposed for backporting to 2.2.x
>
>
>


-- 
Dziugas Baltrunas
http://dziugas.baltrunas
.lt/

  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )