Namesniper
Verified User
- Joined
- Jan 5, 2007
- Messages
- 89
I have Nginx setup in a reverse proxy and its passing IPs to Apache.
For some reason mod_status wont recognise client IPs and instead shows my website IP as a 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
Is it about wrong mod_realip configuration or Apache 2.4 isnt supposed to work like this?
Also logs werent working correctly, but were fixed by changing the format from %h to %a.
For some reason mod_status wont recognise client IPs and instead shows my website IP as a 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
Is it about wrong mod_realip configuration or Apache 2.4 isnt supposed to work like this?
Also logs werent working correctly, but were fixed by changing the format from %h to %a.