Apache get ip from proxy (mod rpaf)

From Skytech
Revision as of 10:09, 25 May 2012 by Martin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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