mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #4090] Cannot specify a port when configuring a new proxy host in the domain name with 2.12.1 #2660
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#2660
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 @codethought on GitHub (Oct 20, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4090
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
With version 2.12.1 the ability to specify a port in the domain name when adding a new proxy host now generates an error where it did not in 2.11.3. See attached screen shots.. If this is not a bug I would like to know how to accomplish this same thing now with newer versions. Thanks.
Nginx Proxy Manager Version
2.12.1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect to be able to enter a port with the domain name
Screenshots
Operating System
Docker within Unraid (Linux)
Additional context
@yiqian987 commented on GitHub (Nov 8, 2024):
The same problem happened to me
@codethought commented on GitHub (Nov 8, 2024):
I figured out why.. this isn't a bug.. we're leveraging the proxy manager wrong... so we are in the wrong.. not NPM
In NGINX itself, If you need to set up a proxy configuration in NGINX where requests to the same
server_nameare forwarded to different destination ports based on the incoming port, you can do this by setting up multiple server blocks, each with a differentlistenport, and then using theproxy_passdirective to specify the backend (destination) port. For example:Eventually NGINX will disable the ability to do it 'wrong' aka
derp.domain:1337And we will have to use the advanced configuration section to set up multiple
proxy_passconfigurations.