Wondering if anyone else has done this..
I have two virtualmin servers, web-1 and web-2. I have configured HAProxy on our PFSense firewall to correctly intercept web-(1|2).domain.com and redirect to the correct internal IP on port 10000.
web-1.domain.com -> 10.10.10.10:10000
web-2.domain com -> 10.10.10.20:10000
FrontEnd has an SSL redirect and SSL offloading, and the backends are enabled for SSL - this all works fine, and I reach the login page using web-1.domain.com
The problem I have is upon logging in to virtualmin - the login script redirects to
https://web-1.domain.com:10000/?virtualmin
which is blocked by the firewall (I'd rather not have these common ports exposed, hence using HAProxy instead of NAT).
If I re-enter web-1.domain.com into the address bar, it redirects to
https://web-1.domain.com/?virtualmin
and I can then access the backend correctly.
Is there a method of removing this rewrite rule from virtualmin/webmin to skip this manual step?
Thanks!