in reply to mod_perl ProxyPreserveHost Emulation

How did this avoid patching mod_proxy? The mod_proxy that works with Apache 1.x doesn't pass X-Forwarded-For or X-Forwarded-Host unless you patch it.
  • Comment on Re: mod_perl ProxyPreserveHost Emulation

Replies are listed 'Best First'.
Re^2: mod_perl ProxyPreserveHost Emulation
by Anonymous Monk on Jul 23, 2006 at 01:39 UTC
    While searching for solutions I learned that mod_proxy has been passing X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Server since version 1.3.25 from the following messages dated 2002 and 2003. So I tried and it worked. The relevant code in mod_proxy begins on line 315 of my copy of apache_1.3.36/src/modules/proxy/proxy_http.c.
      Good, that makes it easy. And your use of the X-Forwarded-Host header looks fine to me.