[GH-ISSUE #2284] Problem to preserve real client IP Address whith NPM Frontend and Apache Backend #1627

Closed
opened 2026-02-26 07:31:49 +03:00 by kerem · 3 comments
Owner

Originally created by @bartounet16 on GitHub (Sep 22, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2284

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"

Originally created by @bartounet16 on GitHub (Sep 22, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2284 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" `
kerem 2026-02-26 07:31:49 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@gudge25 commented on GitHub (Dec 6, 2022):

same here

<!-- gh-comment-id:1339215623 --> @gudge25 commented on GitHub (Dec 6, 2022): same here
Author
Owner

@github-actions[bot] commented on GitHub (Feb 8, 2024):

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

<!-- gh-comment-id:1933238439 --> @github-actions[bot] commented on GitHub (Feb 8, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Mar 25, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2749861414 --> @github-actions[bot] commented on GitHub (Mar 25, 2025): Issue was closed due to inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1627
No description provided.