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?