Apache get ip from proxy (mod rpaf): Difference between revisions

From Skytech
Jump to navigation Jump to search
(Created page with "Category:Linux = 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 look…")
 
No edit summary
 
Line 7: Line 7:


<pre>
<pre>
<IfModule '''mod_rpaf-2.0.c'''>
<IfModule mod_rpaf-2.0.c>
RPAFenable On
RPAFenable On
RPAFsethostname On
RPAFsethostname On
Line 17: Line 17:
instead of the stock
instead of the stock
<pre>
<pre>
<IfModule '''mod_rpaf.c'''>
<IfModule mod_rpaf.c>
[ ... ]
[ ... ]
</pre>
</pre>

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

'''mod_rpaf-2.0.c''' instead of '''mod_rpaf.c'''

Latest revision as of 10:09, 25 May 2012


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