Monthly Archives: July 2012

rpaf_module vs remoteip_module in Apache 2.4


It’s realy funny, but your favorite apache module to get real ip “rpaf_module” doesn’t work anymore in Apache 2.4.
Replace it with internal remoteip_module

LoadModule remoteip_module modules/mod_remoteip.so
RemoteIPHeader X-Forwarded-For
RemoteIPInternalProxy 127.0.0.0/24
RemoteIPInternalProxy 192.168.0.0/24

After _SERVER["REMOTE_ADDR"] will be ok.