I have a server on which I want to host several domains.
Let's say these:
example1.com example2.com example3.com
I only have one public IP (currently). I have configured all A-records to point to that public IP address. I can configure my apache to serve files for all domains without any problem and I can ssh to any of these domains and reach my server.
Now I have installed KVM and created a couple of guests. One guest has a private IP address
192.168.0.100. I want to host
example2.com on that guest. Therefore I would need to somehow direct all traffic meant for that domain to the private IP address.
I want to be able to have an apache and sshd running on several guests and distribute traffic according to which domain the guest is configured for.
Is this possible at all with a private network? Or do I need public IP addresses for each domain?
I'd be grateful if someone could enlighten me I suspect I am overlooking something obvious.