nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

domain name must match pattern "^[^&| @!#%^();:/\\}{=+?<>,~`'"]+$"

Open grzywek opened this issue 6 months ago • 14 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

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 Image

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?

grzywek avatar Jun 02 '25 00:06 grzywek

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.

AlperShal avatar Jun 04 '25 13:06 AlperShal

Remove you :8083 from your domain. And add that to port below.

jaycedk avatar Jun 08 '25 07:06 jaycedk

Remove you :8083 from your domain. And add that to port below.

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.

AlperShal avatar Jun 08 '25 07:06 AlperShal

Can you use Stream for this instead?

tanpro260196 avatar Jun 10 '25 20:06 tanpro260196

Can you use Stream for this instead?

I guess that would work but in the need of custom Nginx conf it still is not enough.

AlperShal avatar Jun 11 '25 05:06 AlperShal

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.

Veeau avatar Aug 06 '25 08:08 Veeau

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.

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.

AlperShal avatar Aug 06 '25 15:08 AlperShal

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.

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.

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.

Veeau avatar Aug 07 '25 00:08 Veeau

same, this is a regression.

littleblack111 avatar Sep 07 '25 18:09 littleblack111

Same problem, the network operator closed port 80 and 443 in my network and I had to try other ports.

KagurazakaIris avatar Oct 07 '25 04:10 KagurazakaIris

Same problem, any update ?

clementbey avatar Oct 22 '25 15:10 clementbey

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.

12io avatar Nov 13 '25 20:11 12io

same problem when trying to input https://mydomain.com as domain, when i do mydomain.com it works but not what i want

poltpolt avatar Dec 04 '25 11:12 poltpolt

same problem when trying to input https://mydomain.com as domain, when i do mydomain.com it works but not what i want

why would you need to enter a domain with https:// ?

grzywek avatar Dec 06 '25 11:12 grzywek