[GH-ISSUE #2712] Proxy Preserve Host option on Custom Locations and Proxy Hosts #1870

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

Originally created by @mcarbonneaux on GitHub (Mar 19, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2712

By default nginx seem to don't preserve the host port (in certain case).

in some case is usefull like in https://github.com/esphome/issues/issues/4327 to preserve the host AND the port.
in apache you have an options to do that ProxyPreserveHost, in nginx you can use http_host variable to that.

in this maner:

proxy_set_header Host $http_host;

https://serverfault.com/questions/706438/what-is-the-difference-between-nginx-variables-host-http-host-and-server-na

it would be possible to add an option (in proxy host and in custom locations) to pass the host as is (with port) in the Nginx Proxy Manager as flag on/off to simplify the usage ?

Originally created by @mcarbonneaux on GitHub (Mar 19, 2023). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2712 By default nginx seem to don't preserve the host port (in certain case). in some case is usefull like in https://github.com/esphome/issues/issues/4327 to preserve the host AND the port. in apache you have an options to do that `ProxyPreserveHost`, in nginx you can use `http_host` variable to that. in this maner: ``` proxy_set_header Host $http_host; ``` https://serverfault.com/questions/706438/what-is-the-difference-between-nginx-variables-host-http-host-and-server-na it would be possible to add an option (in `proxy host` and in `custom locations`) to pass the host as is (with port) in the `Nginx Proxy Manager` as `flag` on/off to simplify the usage ?
Author
Owner

@github-actions[bot] commented on GitHub (Jan 25, 2024):

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

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

@whc2001 commented on GitHub (Jul 6, 2024):

👍

<!-- gh-comment-id:2211680839 --> @whc2001 commented on GitHub (Jul 6, 2024): 👍
Author
Owner

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

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

<!-- gh-comment-id:2712307243 --> @github-actions[bot] commented on GitHub (Mar 11, 2025): Issue is now considered stale. If you want to keep it open, please comment :+1:
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#1870
No description provided.