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 <jim jagunet.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/
|