Hi,
I am running a centos7 and apache server (httpd)
Code:
apachectl -V
[Mon Apr 03 16:01:54.213096 2017] [so:warn] [pid 55106] AH01574: module remoteip_module is already loaded, skipping
[Mon Apr 03 16:01:54.213235 2017] [so:warn] [pid 55106] AH01574: module remoteip_module is already loaded, skipping
Server version: Apache/2.4.6 (CentOS)
Though remote_ip module is installed it doesn't seem to work. I have a PHP script from in which I need to record the HTTP_X_REAL_IP.
I am getting
Code:
PHP Notice: Undefined index: HTTP_X_REAL_IP
This webserver is behind an Haproxy server and I have set on HAPROXY
Code:
option forwardfor header X_REAL_IP
On the CentOS webserver, /etc/httpd/conf.modules.d/360_mod_remoteip.conf
Code:
LoadModule remoteip_module modules/mod_remoteip.so
RemoteIPTrustedProxy 192.168.10.43
RemoteIPHeader X-Forwarded-For
RemoteIPHeader X-Real-IP
But it just doesn't seem to work.
Any help is really appreciated.
Regards,