NginxProxyManager / nginx-proxy-manager

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

Wrong redirect in proxy host #4136

Closed duindain closed 2 weeks ago

duindain commented 2 weeks ago

Checklist

Describe the bug

I have two relevant proxy hosts A - example.com, www.example.com -> 192.168.1.40 B - mail.example.com -> 192.168.1.41

When i try navigating to mail.example.com it goes to 192.168.1.40 instead of 192.168.1.41

Nginx Proxy Manager Version

v2.12.1

To Reproduce Steps to reproduce the behavior:

  1. Add proxy host example.com and www.example.com -> 192.168.1.40
  2. Add proxy host mail.example.com -> 192.168.1.41
  3. open a browser to https://example.com which will go to 192.168.1.40
  4. open a browser to https://mail.example.com which will also go to 192.168.1.40

Expected behavior

navigating to a subdomain should go to the registered server or fail if there is no registered server and no wildcard

Screenshots

image image image

Operating System

Running in a non priveleged LXE on ubuntu 24.04.1 via Proxmox 8.2.7

Additional context

Docker version 27.3.1, build ce12230

Have i made a mistake somewhere?

duindain commented 2 weeks ago

I've left this configured as pictured above with one proxy host with www.example.com, example.com and a second proxy host with mail.example.com and 24 hours ago it started redirecting all incoming traffic to the mail proxy host, server 192.168.1.41 instead of the correct entry 192.168.1.40

I've just set the mail.example.com to disabled and its now redirecting to 192.168.1.40 again

duindain commented 2 weeks ago

Sorry for this this was my fault i had forgotten id added a redirect in pihole dns to go to mail.... server and it was that old ip

Im not sure why the second issue occurred but I've split all the config to individual entries now and also had to change the server ports from 80 to 81 and 82 as they would work for half a day or a day then break again

Also removed sending https and sending http internally

Fingers crossed they are still working tomorrow