Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
Yes
Are you sure you're not using someone else's docker image?
Yes
Have you searched for similar issues (both open and closed)?
Yes
Describe the bug
I have 2 Proxy Hosts setup:
subdomain1.domain.com (with forced SSL)
subdomain2.domain.com (HTTP only)
Both point to destination http://LOCAL_IP:8080
I want 1st Proxy to listen on 80 and 443 and the 2nd Proxy to listen only on 8180, so in the 2nd settings in Advanced in 'Custom Nginx Configuration', I put:
in ports: section in docker/portainer, so 8180 is available.
Whenever I try to access subdonain1 via 80 or 443, I get a connection (or redirection to 443) and that is OK. Also when I try to reach subdomain2 via 8180 it works fine.
What is not fine - or at least I think it should not work:
A) subdomain1 is also available via 8180 port
B) subdomain2 is also available via 80 port (but not via 443, but that is OK since there is 'HTTP only' in the setup)
It this a bug or I am setting this in a wrong way?
Nginx Proxy Manager Version
v2.10.3
To Reproduce
Steps to reproduce the behavior:
Add 8180:8180 to the docker in ports: section
(Optional) Setup DNS and port forwarding on router
Setup 2 proxy hosts as described above
Populate 'Custom Nginx Configuration' for the subdomain2
Checklist
jc21/nginx-proxy-manager:latest
docker image?Describe the bug
I have 2 Proxy Hosts setup:
Both point to destination http://LOCAL_IP:8080 I want 1st Proxy to listen on 80 and 443 and the 2nd Proxy to listen only on 8180, so in the 2nd settings in Advanced in 'Custom Nginx Configuration', I put:
listen 8180; server_name madzia4-test.dziubalabs.pl; location / { proxy_pass $forward_scheme://$server:$port; }
I also added
in ports: section in docker/portainer, so 8180 is available.
Whenever I try to access subdonain1 via 80 or 443, I get a connection (or redirection to 443) and that is OK. Also when I try to reach subdomain2 via 8180 it works fine.
What is not fine - or at least I think it should not work: A) subdomain1 is also available via 8180 port B) subdomain2 is also available via 80 port (but not via 443, but that is OK since there is 'HTTP only' in the setup)
It this a bug or I am setting this in a wrong way?
Nginx Proxy Manager Version
v2.10.3
To Reproduce Steps to reproduce the behavior:
Expected behavior
Screenshots
N/A
Operating System
Additional context
N/A