Hi, any commens/objections on this patch?
On 2/28/07, Dziugas Baltrunas <[EMAIL PROTECTED]> 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. On 2/28/07, Dziugas Baltrunas <[EMAIL PROTECTED]> wrote: > Hi list, > > for those of us who are using Apache HTTPD as a "internet" proxy (a > combination of forward and reverse proxy modes) it's important that > requests going to the remote servers (which are not "known" backends > but anonymous boxes in this case) would look the same independently > whether the original request came in reverse or forward fashion. > > Currently mod_proxy_http adds X-Forwarded-* headers unconditionally > when we have a reverse proxy request and never for forward proxy > requests. > > Attached patch adds a new ProxyAddXHeaders directive with a possible > options of On|Off|ReverseOnly, later option leaving the default in > order not to break compatibility with current configurations. With > this option it is possible to always add X-Forwarded-For, > X-Forwarded-Host and X-Forwarded-Server headers for both reverse and > forward proxy modes, for reverse proxy only or not to add them at all. > > Comments and suggestions are welcome. > > -- > Dziugas Baltrunas > > -- Dziugas Baltrunas
-- Dziugas Baltrunas http://dziugas.baltrunas.lt/