Hello all,
I currently have A proxmox Install on my desktop PC which hosts several VM’s.
My router firewall settings do not give me much flexibility and cannot look at Subdomains, only DST IP & Port.
- additionally I Have a dynamic IP address which I manage via DNS dynamic Update scripts & duckDNS on the router side and Dyndns on the Webmin/Virtualmin side.
Now that’s explained here is the problem:
Virtualmin is my primary Webhosting server/LAN side DNS for local domains. So I can have subdomain.domain.TLD (for many domains) land to the Virtualmin server and everything is fine.
But say, for example, I want “Specific Subdomain”.SpecificDomain.tld to go to a Different virtual machine (Different static Lan IP) using a reverse proxy?
I am not sure how to do this on Webmin/Virtualmin for the port 80 and port 443.
Currently, on my firewall I am doing (primary hostname):“randomPort” -> different destination IP on the router.
I hope you understand what I am trying to say because I am not good at explaining myself.
let me give you an example:
If I want www.mydomain.com to go to Webmin/Virtualmin, it should load a web page.
But if I want MyPBX.myDomain.com, I don’t wish to Virtualmin to load that as a webpage. Instead, I want Virtualmin to Reverse proxy it from a LAN IP 192.168.50.99:80
Do you understand what I am trying to say?
I think the solution is something to do with BindDNS & Reverse proxy and something.
But I do not know how to do it.
Can you please give me an example of an idea on how to solve this specific hostname to an IP via Virtualmin/Webmin directly? Or should I have a separate PROXY in between Virtualmin/my router?
I want to minimise all complexity and manage everything nicely inside Virtualmin!!! (also I do not wish to have Virtualmin installed with Cloudmin directly on the Host system) I like keeping all my webpages in a separate LXC.
Thanks very much!!!