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

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

Open StoicaTudor opened this issue 1 year ago • 1 comments

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 avatar Aug 12 '24 13:08 StoicaTudor

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.

StoicaTudor avatar Aug 13 '24 08:08 StoicaTudor

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/

641i130 avatar Oct 06 '24 02:10 641i130

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

github-actions[bot] avatar May 19 '25 02:05 github-actions[bot]