how to enable x-forwarded-for in perlbal
Todd Lipcon
todd at amiestreet.com
Tue Apr 22 03:55:20 UTC 2008
Hi Hendra,
X-Forwarded-For is enabled by default. What exactly are you trying to
accomplish? If you're trying to fix the IPs in the access log, you'll have
to modify the LogFormat you're using to show the X-Forwarded-For header
instead of the remote address. Something like:
CustomLog /path/to/access.log "%{X-Forwarded-For}i %l %u %t \\"%r\\" %>s %b"
Hope that helps,
-Todd
On Tue, 22 Apr 2008, Hendra wrote:
> Hi All,
>
> I'm putting Perlbal (v1.70) in front of my Apache2 server and now all
> requests are shown as coming in from localhost (127.0.0.1), I understand
> that perlbal can forward the original client ip (X-Forwarded-For) but can't
> find the reference on enabling this.
>
> Can anyone help?
>
> Thanks,
> Hendra
>
More information about the perlbal
mailing list