Hello all. I have HA running in a QEMU/KVM instance. I can access it by IP. I have jumped through hoops trying to figure out why I can’t use a hostname. I’ll paste my nginx config block for this site and the domain is valid, I have many things configured in a similar fashion and they all work flawlessly. There is nothing different about HA that I am aware of.
I see some similar topics but those appear to be segmented lans and wifi issues. When I do a request in the browser, it says it can’t connect.Nothing is logged in nginx, the domain does resolve to the nginx host. I can connect via IP all day long. Any suggestions are appreciated. Thanks!
Yes, this is set. I do see a commented base_url definition that does mention a domain though. I don’t think this is the issue though. Even if I try with curl via domain it is refused instantly. Oddly, nothing is logged in nginx. I can get a response with curl via IP. I feel like I need to investigate with wireshark at this point.
You have to resolve somehow your domain to your local ip. You can use a local dns like adguard for resolving your domain to point it back to your ip address. Feel free to use any other option.
ok, but the problem might be then in your router. I think that you will have to point your router dns to point to your ip host running dns server to resolve your local domain.
At least this is how I set things up. I use adguard for dns resolving including my local domain.
But maybe this is not necessary for all setups, but there are a lot different setups you can do.
I just did some testing with wireshark. For whatever reason the multiple browsers and machines I tried this on instantly refuses the connection and doesn’t log any traffic. When I try to access my other proxy hosts that are on this same target machine, tons of logs and they work. This does not explain what is happening, but does validate the lack of any logging on the nginx side.
Sidenote, all of my LAN and WiFi traffic is on the same subnet and the only shaping/filtering/firewall stuff happens at the edge router. These requests are all internal, thus not subject to any routing.
This does not appear to be a direct issue with HA itself. I’ll have to brainstorm for a bit.