mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #4562] domain name must match pattern "^[^&| @!#%^();:/\\}{=+?<>,~`'"]+$" #2914
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#2914
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 @grzywek on GitHub (Jun 2, 2025).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4562
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
No longer possible to use domain with port in Domain Name because of the error
data/domain_names/0 must match pattern "^[^&| @!#%^();:/\\}{=+?<>,~'"]+$`Nginx Proxy Manager Version
v2.12.3
Expected behavior
It had been working flawlessly for years until one of the recent updates disrupted my configuration
Screenshots

Operating System
Docker
Additional context
This change is completely incomprehensible to me. I had 15 services configured on one subdomain with different ports, e.g., sub.domain.com:5380, sub.domain.com:3001, etc., and they all stopped working after one of the recent updates (to be precise, I lost the ability to edit them via the GUI). Who was bothered by this port? Why force users into a single approach using the default 80/443 ports and differentiating services by domain?
@AlperShal commented on GitHub (Jun 4, 2025):
I have just came across this problem. Came here and last created issue is the same. Interesting you (and I) are the only ones reporting this.
@jaycedk commented on GitHub (Jun 8, 2025):
Remove you :8083 from your domain.
And add that to port below.
@AlperShal commented on GitHub (Jun 8, 2025):
But that's not what we want to do. This was a way to use other ports than 80 and 443 for reverse proxy. Now we can't do that. Target port and source ports are different things.
@tanpro260196 commented on GitHub (Jun 10, 2025):
Can you use Stream for this instead?
@AlperShal commented on GitHub (Jun 11, 2025):
I guess that would work but in the need of custom Nginx conf it still is not enough.
@Veeau commented on GitHub (Aug 6, 2025):
I have this problem also.
Its needed for Plex as the IOS app sends the header as domain.com:443 rather than domain.com so a stream isnt going to work on 443.
@AlperShal commented on GitHub (Aug 6, 2025):
I don't think this issue is relevant to that problem. Port 443 is already being handled by Nginx Proxy Manager (Stream included). You just need to setup SSL.
@Veeau commented on GitHub (Aug 7, 2025):
Its releveant to the error and changes made to NPN because if i use domain.com and not domain.com:443 it doesnt pass the traffic via nginx it sends it via the plex relay service saying behind nginx is offline as its passing a host header of domain.com:443 and with the new changes I cant add this to the gui like I could in previous versions.
I used this to fix plex in an older version of NPN but now trying to do a new install it wont let me add.
Source: https://www.reddit.com/r/PleX/comments/guwy9a/plex_behind_a_proxy_web_works_fine_ios_apps_say/
" EDIT: Solved. For some reason the Plex iOS apps send “plex.domain.com:443” as the text of the Host header. Most systems will leave off the port if it’s 80 or 443. That was causing my HAProxy “match” rule to return false. When I changed my HAProxy rule to be a begins-with search, all is working. " - This applies for Nginx also.
@littleblack111 commented on GitHub (Sep 7, 2025):
same, this is a regression.
@KagurazakaIris commented on GitHub (Oct 7, 2025):
Same problem, the network operator closed port 80 and 443 in my network and I had to try other ports.
@clementbey commented on GitHub (Oct 22, 2025):
Same problem, any update ?
@12io commented on GitHub (Nov 13, 2025):
Pulled current version (2.13.4) and this issue still persists. We are also using this extensively at work in some reverse-proxied environments... Currently we fix this via database + config files if we need to make changes.
@poltpolt commented on GitHub (Dec 4, 2025):
same problem when trying to input https://mydomain.com as domain,
when i do mydomain.com it works but not what i want
@grzywek commented on GitHub (Dec 6, 2025):
why would you need to enter a domain with https:// ?