how to enable x-forwarded-for in perlbal

Eamon Daly edaly at nextwavemedia.com
Tue Apr 22 04:08:18 UTC 2008


You can also use mod_rpaf, which set the client IP to the
X-Forwarded-For header, allowing you to use things like
Basic Auth as-is:

http://stderr.net/apache/rpaf/

____________________________________________________________
Eamon Daly



----- Original Message ----- 
From: "Todd Lipcon" <todd at amiestreet.com>
To: "Hendra" <hendra at oraclelinux.org>
Cc: <perlbal at lists.danga.com>
Sent: Monday, April 21, 2008 10:55 PM
Subject: Re: how to enable x-forwarded-for in perlbal


: 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