Apache get ip from proxy (mod rpaf)

From Skytech
Jump to: navigation, search


Get ip from proxy

If you're using debian squeeze and cannot understand why you do not get the ip from your rev proxy, then it could be that apache is looking for the wrong module.

If you're using mod_rpaf you have to make sure that it is loading:

<IfModule mod_rpaf-2.0.c>
RPAFenable On
RPAFsethostname On
RPAFproxy_ips x.x.x.x y.y.y.y z.z.z.z [ ... ]
RPAFheader X-Forwarded-For
</IfModule>

instead of the stock

<IfModule mod_rpaf.c>
[ ... ]

If you missed it, the emphazis is on the module name:

mod_rpaf-2.0.c instead of mod_rpaf.c