[GH-ISSUE #689] Multiple listening ports / services for single domain / host #584

Closed
opened 2026-02-26 06:33:31 +03:00 by kerem · 3 comments
Owner

Originally created by @wasn-eu on GitHub (Nov 5, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/689

Describe the solution you'd like
i have sometimes more than one port for a domain that i need to open and use a lets encrypt certificat.
i would like to add a the same domain multiple times with different listen ports and forward these to different ips and ports.

Originally created by @wasn-eu on GitHub (Nov 5, 2020). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/689 **Describe the solution you'd like** i have sometimes more than one port for a domain that i need to open and use a lets encrypt certificat. i would like to add a the same domain multiple times with different listen ports and forward these to different ips and ports.
kerem 2026-02-26 06:33:31 +03:00
Author
Owner

@chaptergy commented on GitHub (May 12, 2021):

As the advanced config is inserted inside the server { } block:

server {
  listen 80;
  listen 443 ssl;

  # Advanced code will be added here <--------
}

you can add custom nginx configuration there to do this. As the advanced tab is just normal nginx code, support on this github repo will be very limited for this. If anyone wants to share their working configuration, you are very welcome to do so, but unfortunately we can't provide nginx help.

<!-- gh-comment-id:840067134 --> @chaptergy commented on GitHub (May 12, 2021): As the advanced config is inserted inside the `server { }` block: ``` server { listen 80; listen 443 ssl; # Advanced code will be added here <-------- } ``` you can add custom nginx configuration there to do this. As the advanced tab is just normal nginx code, support on this github repo will be very limited for this. If anyone wants to share their working configuration, you are very welcome to do so, but unfortunately we can't provide nginx help.
Author
Owner

@ylluminate commented on GitHub (Sep 13, 2021):

@chaptergy thank you for your example and suggestion. Can you clarify that if simply wanting to listen to (pass through) multiple ports, say 80, 443, and 3000, one might simply have the following without any ssl_certificate_key, location, etc. definitions so that Nginx Proxy Manager handles those aspects for us?:

 server {
      listen 80;
      listen 443 ssl;
      listen 3000;
}

In my use case I'm attempting to configure CapRover and it requires other ports in addition to just standard http(s).

<!-- gh-comment-id:918299012 --> @ylluminate commented on GitHub (Sep 13, 2021): @chaptergy thank you for your example and suggestion. Can you clarify that if simply wanting to listen to (pass through) multiple ports, say 80, 443, and 3000, one might simply have the following without any `ssl_certificate_key`, `location`, etc. definitions so that Nginx Proxy Manager handles those aspects for us?: ``` server { listen 80; listen 443 ssl; listen 3000; } ``` In my use case I'm attempting to configure CapRover and it requires other ports in addition to just standard http(s).
Author
Owner

@Freddyqt commented on GitHub (Jul 31, 2022):

I had a similar problem, that I needed to open port 8080 of a service. what I did was set up the docker-compose.yml file and add '8080:8080' , then create a proxy host and manually had to set it to listen on port 8080 and not port 80.

<!-- gh-comment-id:1200451386 --> @Freddyqt commented on GitHub (Jul 31, 2022): I had a similar problem, that I needed to open port 8080 of a service. what I did was set up the docker-compose.yml file and add '8080:8080' , then create a proxy host and manually had to set it to listen on port 8080 and not port 80.
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#584
No description provided.