On Jun 24, 2011, at 4:52 AM, Brane F. Gračnar wrote:
> Hello
>
> I've made really small patch over svn trunk version of mod_remoteip to compile
> and work in Apache 2.2.x.
>
> Mod_remoteip sets client's IP address from X-Forwarded-For header.
>
> Advantage of using mod_remoteip over mod_extract_forwarded or mod_rpaf is that
> client's IP address is not only logged, but but is set internally - so you can
> use mod_access to define IP based ACLs using Allow/Deny pragmas.
>
> Complete module source kode is available here:
http://bit.ly/kBTiZ9
>
> Compile it by issuing command: apxs -c mod_remoteip.c
I'm a little delayed on this thread, but if any of you are using FreeBSD, I created a port several months ago that also backports this to apache22.
http://www.freshports.org/www/mod_remoteip