Hello everyone
i have set up a reverse proxy (apache) on my main sever (ubuntu) where i have running some services and have a dns as well. i have configurated some vhost and those that redirect to the same server that is dns/proxy work fine. But those vhost that point to another server dont work.
It’s difficult to tell just from the images, but when you look up nas-1.yourdomain.cu, does it resolve the actual address of the NAS or of the reverse proxy. You want it to resolve the reverse proxy.
Sorry to fall off of this—rough week here. This seems like it’s a DNS entry away from working. Here’s what I think is the current situation (please let me know if I’m wrong):
The TrueNAS web-ui is listening on port 8036
Is that http or https?
You have nas-2 resolving to 192.168.1.108
The reverse proxy seems to be at 192.168.1.104
If those last two bits if info are correct, you should adjust your DNS zone to resolve nas-1.homelab.cu to be 192.168.1.104. In order for the reverse proxy to do its job, traffic has to go to it rather than the ultimate destination. If nas-2.homelab.cu resolves directly to TrueNAS, that traffic will never see the reverse proxy.
That’s good that it’s bringing you to a truenas page now. That’s progress! My suspicion is there’s some weirdness with using a reverse proxy. Maybe there’s a web sockets component. I don’t know Apache well enough to be helpful on that front, but it might give you a direction to pursue.