So I have a server running proxmox with 2 vms (2 local IPs), each vm has apache server running, I need to setup 2 domains (one to each virtual machine) and I can’t find a way.
Apache vhost documentation didn’t help neither did google.
Any ideas?
Thank you!
2
Answers
You can create a haproxy cluster with one virtual IP and put back your two apache nodes
You can look at Nginx Proxy Manager (NPM) and setup proxy to 2+ (unlimited) local VMs with different domain. NPM supports web UI so it’s easier to config.
The best way is create another VM which for setup NPM then you’re good to go. Using this for 10+ domain and had no complaint about it.
P/s: I’m not the author of this useful app.