Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bartounet16 opened this issue Sep 22, 2022 · 2 comments

Comments

@bartounet16
Copy link

bartounet16 commented Sep 22, 2022

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
Copy link

gudge25 commented Dec 6, 2022

same here

Copy link

github-actions bot commented Feb 8, 2024

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

@github-actions github-actions bot added the stale label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants