Hi,I have Server version: Apache/2.4.4 (Ubuntu) and nginx
and I try setup mod_remoteip but without success.
I did next steps:
1. enable and configure mod_remoteip module
# cat remoteip.conf
RemoteIPHeader X-Forwarded-For
RemoteIPTrustedProxy 212.12.x.x
# cat remoteip.load
LoadModule remoteip_module /usr/lib/apache2/modules/mod_remoteip.so
2. change LogFormat directive to
LogFormat "%a %{host}i %l %u %D %T %{pid}P %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
(changed %h -> %a )
3. In nginx.conf i have
...
proxy_pass http://212.12.x.x:81;
proxy_redirect http://212.12.x.x:81/ /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
...
After this I can see real IP addresses in apache logs, but /server-status/ page shows only frontend (nginx) IP-address 212.12.x.x
Can somebody help me to see real IP-addresses in server-status page ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx