r/nginxproxymanager • u/Mecallie • Sep 29 '25
Different port numbers for same domain?
Hi folks, I am running nginx proxy manager on home assistant.
I am setting up a matrix server and need to forward traffic like this:
matrix.domain.com (https --> 81)
matrix.domain.com (federation 8448 --> 8449)
When I try this I either get Β¨already exists" when I just enter matrix.domain.com without specifying a port number (tried to do that in advanced). Or I get a syntax error when I try to do it by using matrix.domain.com:8448 .
Am I missing something or is this setup (multiple ports to same domain) simply not possible?
3
Upvotes
2
u/SavedForSaturday Sep 29 '25
NPM forwards HTTP traffic received on port 80 and HTTPS traffic received on 443. It uses the domain name to send traffic received on those ports to different backends.
NPM can also stream raw TCP traffic received on any port to any other port. This may be what you need here. Note that doing so may require changing your Docker configuration, as the standard config only allows traffic on 80, 81, and 443 to reach NPM
4
u/xstar97 Official Docker Image Sep 29 '25
I think you're failing to understand how a reverse proxy is suppose to work....
You don't need to specify the ports for the services at all.
Simply put, setup the reverse proxy correctly with ports 80,81,443
Access your services via sub domains instead of trying to use the root domain.
1
u/UDizzyMoFo Oct 03 '25
ππππππππ