httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Володя К. <vova-...@yandex.ua>
Subject [users@httpd] mod_remoteip: server-status page does not show real ip
Date Tue, 18 Jun 2013 09:39:15 GMT
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message