mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #2516] Support other ports (non 80/443) configuration in headers via UI settings #1754
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1754
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GAS85 on GitHub (Jan 3, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2516
Is your feature request related to a problem? Please describe.
If my Application runs on different ports, e.g.
907Xit will cause a bunch of trouble - port will not be forwarded to the service and at the end redirect happens on port80or443that are not configured by npm.Docker-compose
On a 1st line Service was found and it tells us to follow url
http://jackett.fritz.box:9070/UI/Dashboard.On a 2nd line Service would like to authorize user, but do not know port, so it skip it in a answer and ended up with wrong URL (no port)
http://jackett.fritz.box/UI/Login?ReturnUrl=/UI/Dashboardand 404.Describe the solution you'd like
Configure port in a
proxy_set_header Host $host:PORT;will solve this issue.Unlike current solution it is only
proxy_set_header Host $host;. Add Possibility to enable and add custom port to the header Host.Describe alternatives you've considered
I tried to use "Custom Location" and set it to the root so I can add
proxy_set_header Host $host:PORT;but this will cause this entry twice: without port and at the end with port that cause an error.Alternative 2 is to mount
proxy.confto the host machine:and update it:
Additional context
There is no need to modify
listen 80;part of the configuration and bind nginx to some other ports, it shall remains untouched. But underlining services need to know the Port.@lerra commented on GitHub (Feb 12, 2023):
I have the similar need, to be able to set a custom listening port for a specific domain/vhost/proxy host
@etonline commented on GitHub (May 31, 2023):
Same here, adding
proxy_set_header Host $hostin the custom setting of the "/" location will cause entry duplicate in the config file 😢@YUJX19 commented on GitHub (Oct 29, 2023):
The same issue
@github-actions[bot] commented on GitHub (Jun 12, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@GAS85 commented on GitHub (Jun 12, 2024):
👍
@github-actions[bot] commented on GitHub (Mar 17, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍
@GAS85 commented on GitHub (Mar 17, 2025):
👍
@github-actions[bot] commented on GitHub (Dec 28, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍
@lerra commented on GitHub (Dec 28, 2025):
I would love to see this feature