nginx-proxy-manager
nginx-proxy-manager copied to clipboard
Problem to preserve real client IP Address whith NPM Frontend and Apache Backend
Hello.
i have read others issues and it does not work for me.
I have NPM (docker) on front reverse proxy and apache for backend web site.
i have added option "real_ip_header CF-Connecting-IP;
" in my NPM configuration
https://i.ibb.co/hRf25RK/2022-09-22-22-11-53-Nginx-Proxy-Manager-Mozilla-Firefox.png
And i have enable remoteip module in apache and add options in vhosts.
<VirtualHost 172.30.0.2:80> ErrorLog syslog LogLevel warn ServerName www.monsite.fr DocumentRoot /var/www/html/www/ RemoteIPHeader X-Forwarded-For RemoteIPInternalProxy 172.30.0.1 </VirtualHost>
But it does not work. I have the ip about NPM reverse proxy in my apache logs
www.monsite.fr:80 172.30.0.1 - - [22/Sep/2022:20:06:42 +0000] "GET / HTTP/1.1" 200 9418 "-" "Mozilla/5.0 (Linux; Android 11; Redmi Note 9 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Mobile Safari/537.36"
same here
Issue is now considered stale. If you want to keep it open, please comment :+1: