NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
23.27k stars 2.7k forks source link

Ports in domain name no longer allowed #4160

Closed Junktroep closed 1 week ago

Junktroep commented 1 week ago

Checklist

Describe the bug

image

I am using ports in my listening config. This works fine. But now I want to change the certificate, and it gives me this error

Nginx Proxy Manager Version 2.12.1

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Proxy host with port'
  2. Click on 'change ssl'
  3. Scroll down to 'Hit save'
  4. See error

Expected behavior Honor ports previous allowed

Junktroep commented 1 week ago

After some trial and error I made a proxy host with non-port domain name and put following in advanced:

listen 8085 ssl; listen 9097 ssl; location / { if ($server_port = 8085) { proxy_pass http://192.168.50.1:8096; } if ($server_port = 9097) { proxy_pass http://192.168.50.4:80; } }

No clue if this is the best solution, but for now it works.