[GH-ISSUE #3842] Support custom port for proxy host domain name #2524

Open
opened 2026-02-26 07:35:54 +03:00 by kerem · 4 comments
Owner

Originally created by @Hadatko on GitHub (Jun 30, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3842

Is your feature request related to a problem? Please describe.

Press Add Proxy Host i have option to add domain names. Added domain names then appear in Proxy Hosts table where on first column appear domain names which can be then clicked and you are forwarded to the page.
For example when i want use foo.bar.eu on different port i can add domain name 'foo.bar.eu:11111'. When i click then in Proxy Hosts table on my link i am correctly forwarded to foo.bar.eu:11111, but when i want create SSL certificate using dns the the whole address is provided to certbot but the port in domain name is causing issue.
I am curious if you can add support for custom port so i would be able generate certificate for foo.bar.eu but in table i would be able to click on foo.bar.eu:11111 to access that web page.

Describe the solution you'd like

Somehow be able to modify link for domain to access web on different port. So i would be able to generate certificate for foo.bar.eu but url for page would be foo.bar.eu:11111

Describe alternatives you've considered

Additional context

Originally created by @Hadatko on GitHub (Jun 30, 2024). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3842 <!-- Are you in the right place? - If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit. - If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask. - If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the *right place.* --> **Is your feature request related to a problem? Please describe.** <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] --> Press Add Proxy Host i have option to add domain names. Added domain names then appear in Proxy Hosts table where on first column appear domain names which can be then clicked and you are forwarded to the page. For example when i want use `foo.bar.eu` on different port i can add domain name 'foo.bar.eu:11111'. When i click then in Proxy Hosts table on my link i am correctly forwarded to foo.bar.eu:11111, but when i want create SSL certificate using dns the the whole address is provided to certbot but the port in domain name is causing issue. I am curious if you can add support for custom port so i would be able generate certificate for foo.bar.eu but in table i would be able to click on foo.bar.eu:11111 to access that web page. **Describe the solution you'd like** <!-- A clear and concise description of what you want to happen. --> Somehow be able to modify link for domain to access web on different port. So i would be able to generate certificate for foo.bar.eu but url for page would be foo.bar.eu:11111 **Describe alternatives you've considered** <!-- A clear and concise description of any alternative solutions or features you've considered. --> **Additional context** <!-- Add any other context or screenshots about the feature request here. -->
Author
Owner

@Hadatko commented on GitHub (Jun 30, 2024):

image
proxy hosts table
image

<!-- gh-comment-id:2198557784 --> @Hadatko commented on GitHub (Jun 30, 2024): ![image](https://github.com/NginxProxyManager/nginx-proxy-manager/assets/13130700/0c7a3b32-4521-49a8-8f1e-db3a167e3997) proxy hosts table ![image](https://github.com/NginxProxyManager/nginx-proxy-manager/assets/13130700/8b532c62-bb10-41f6-bd45-d659a04d6bf3)
Author
Owner

@peschee commented on GitHub (Jan 14, 2025):

This used to work in previous versions, it seems it does not anymore.

<!-- gh-comment-id:2591012439 --> @peschee commented on GitHub (Jan 14, 2025): This used to work in previous versions, it seems it does not anymore.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 30, 2025):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:3134654493 --> @github-actions[bot] commented on GitHub (Jul 30, 2025): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@peschee commented on GitHub (Jul 30, 2025):

Does this work now?

<!-- gh-comment-id:3134880234 --> @peschee commented on GitHub (Jul 30, 2025): Does this work now?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#2524
No description provided.