I have an Ubuntu 10.10 host on which I installed VirtualBox VM. In VirtualBox, I have installed two other Ubuntu machines mainly with the same configuration. I am trying to achieve a High Availability cluster with two nodes (those 2 virtual machines) and I don't want to mix my Host machine in this project.
Now, I want to switch Apache service among those 2 virtual machines and for that I created a virtual host. I edit on both machines /etc/apache2/sites-available/mywebsite and add the following lines:
<VirtualHost 18.104.22.168:80> ServerAdmin email@example.com ServerName mywebsite.com DocumentRoot /var/www/mywebsite/ </VirtualHost>
This will give me the option to launch my website from
22.214.171.124 instead of
http://localhost. But, this only works in my 2 nodes cluster and is not visible from my host machine. What can I do? Is there any solution ?
I am sorry for the long post, but I wanted to give you as many details as possible. Thanks