[GH-ISSUE #264] nginx Proxy Pass show localhost IP #222

Closed
opened 2026-02-26 09:36:40 +03:00 by kerem · 3 comments
Owner

Originally created by @dipenpatel235 on GitHub (May 27, 2016).
Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/264

Hello...
i am doing proxy pass from nginx to nsupdate port
so on front page it is displayed 127.0.0.1

instead of that i want to displayed real IP.
So how can i real ip ?

I have also try using
proxy_set_header X-Real-IP $remote_addr;
But not success

Thanks

Originally created by @dipenpatel235 on GitHub (May 27, 2016). Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/264 Hello... i am doing proxy pass from nginx to nsupdate port so on front page it is displayed 127.0.0.1 instead of that i want to displayed real IP. So how can i real ip ? I have also try using proxy_set_header X-Real-IP $remote_addr; But not success Thanks
kerem closed this issue 2026-02-26 09:36:40 +03:00
Author
Owner

@dipenpatel235 commented on GitHub (May 27, 2016):

Thanks
I Have Fixed this issue By Below Patch
So May Be SOme one useful

I Have Used nginx with reverse proxy with real ip

Then In nsupdate info in all file replace REMOTE_ADDR By HTTP_X_REAL_IP

sed -i 's/REMOTE_ADDR/HTTP_X_REAL_IP/g' filename

Thanks

<!-- gh-comment-id:222197090 --> @dipenpatel235 commented on GitHub (May 27, 2016): Thanks I Have Fixed this issue By Below Patch So May Be SOme one useful I Have Used nginx with reverse proxy with real ip Then In nsupdate info in all file replace REMOTE_ADDR By HTTP_X_REAL_IP sed -i 's/REMOTE_ADDR/HTTP_X_REAL_IP/g' filename Thanks
Author
Owner

@ThomasWaldmann commented on GitHub (May 27, 2016):

On nsupdate.info, the software runs behind a nginx proxy without changing of any of its files.

<!-- gh-comment-id:222239772 --> @ThomasWaldmann commented on GitHub (May 27, 2016): On nsupdate.info, the software runs behind a nginx proxy without changing of any of its files.
Author
Owner

@elnappo commented on GitHub (Dec 27, 2016):

close? maybe add a nginx config example (could also be useful for #281) https://nsupdateinfo.readthedocs.io/en/latest/admin.html#installation-for-production

<!-- gh-comment-id:269394347 --> @elnappo commented on GitHub (Dec 27, 2016): close? maybe add a nginx config example (could also be useful for #281) https://nsupdateinfo.readthedocs.io/en/latest/admin.html#installation-for-production
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/nsupdate.info-nsupdate-info#222
No description provided.