Welcome! Log In Create A New Profile

Advanced

Cant get celint IPs in mod_status from mod_remoteip

Posted by Apacheuser 
Cant get celint IPs in mod_status from mod_remoteip
October 28, 2012 07:46PM
I have Nginx setup in a reverse proxy and its passing IPs to Apache.
For some reason mod_status wont recognize client IPs and instead shows my website IP instead of client IP

Here is my old Apache 2.2 mod_rpaf configuraton:
#RPAFenable On
#RPAFproxy_ips 127.0.0.1 website IP server IP
#RPAFsethostname On
#RPAFheader X-Forwarded-For

New Apache 2.4 mod_remoteip configuration:
RemoteIPHeader X-Forwarded-For
RemoteIPTrustedProxy 127.0.0.1 website IP server IP

Nginx proxy configuration which worked on Apache 2.2
location / { proxy_pass http://www.domain.com:8080; include /usr/local/etc/nginx/proxy.conf; }

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

Is it about wrong mod_remoteip configuration or Apache 2.4 isnt supposed to work like this?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 221
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready