Creating virtual host for a server in a load balancer


How to create virtual host for servers in a load balancer.


To create a virtual host got to /etc/apache2/sites-available/ - Create a virtual (see sample under this directory or the once collected where this document is) - Enable the site:

sudo a2ensite mynewsite
sudo /etc/init.d/apache2 restart

Do the same on the other serve whiting load balancer, put a html file to see if it works or now.