NginxProxyManager / nginx-proxy-manager

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

Enabling traffic towards multiple proxy hosts domains with the same name, but listening on different ports #3927

Open StoicaTudor opened 3 months ago

StoicaTudor commented 3 months ago

I have a privately hosted domain abc.com. I would like to be able to create multiple proxy hosts domains with the same name, but listening on different ports (for http and also https connections). This comes in handy, when you do only have 1 domain on which you would like to access several ports (both http and https).

What I would like within this feature: -> to be able to configure multiple proxy hosts with the same domain name and be able to specify several ports for that specific domain which are either listening for http or https connection. Example: proxy host0: abc.com, listening for http on port 8005, 8006, 8007 and for https on 8008 and 8009 -> redirects traffic to localhost:8010 proxy host1: abc.com, listening for http on port 8100 and for https on 8200 -> redirects traffic to localhost:8011

Alternatives I considered, but are impossible, because of how NPM is built: manually modifying the .conf files. Not possible, because even slightly editing a proxy host leads to the automated rewriting of the .conf file.

Additional context: I tried manually modifying the .conf file, but they do rapidly get overwritten, when performing additional settings in the app. The NPM section which manually permits you to write Nginx configurations does not help, due to the fact that I do need to actually delete the "listen 80" and "listen 443 ssl httpd" lines. Currently, NPM does not allow that. I would like the NPM to be more customizable, because it is such a great tool...it's a shame.

StoicaTudor commented 3 months ago

Should there be a work-around for my problem, please enlighten me. However, I hardly believe there is one; the internet says there is none.

641i130 commented 1 month ago

I would also like this. Confused that this may not work anymore...? https://www.reddit.com/r/homelab/comments/16ftare/nginx_proxy_manager_using_multiple_listen_ports/