Re: Solution to obtain the source IP address. REMOTE_ADDR
Posted: Fri Sep 02, 2016 8:54 pm
Works perfectly od Debian 8.5.
Community Forum
https://forum.vestacp.com/
thanks!dsystem wrote:I tried all the tips in this topic cited. But it didn't work.
I found out that apache 2.4 has the remoteip native and the rpaf is no longer supported.
I'll put here changes in Ubuntu 14.04.1
Remove rpaf that doesn't work.
# apt-get remove libapache2-mod-rpaf
create the file remoteip.conf
# nano /etc/apache2/mods-available/remoteip.confActivate remoteip which is native in Apache 2.4Code: Select all
<IfModule mod_remoteip.c> RemoteIPHeader X-Real-IP RemoteIPInternalProxy 127.0.0.1 RemoteIPInternalProxy xxx.xxx.185.66 // server ip </IfModule>
a2enmod remoteip
service apache2 restart
Now works perfectly...