NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.45k stars 2.6k forks source link

Problem to preserve real client IP Address whith NPM Frontend and Apache Backend #2284

Open bartounet16 opened 2 years ago

bartounet16 commented 2 years ago

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"

gudge25 commented 1 year ago

same here

github-actions[bot] commented 8 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1: