- Instalar e configurar WebServers1
- Instalar e configurar WebServers2
- Instalar e configurar HAProxy
- Testar e consultar estatisticas
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install apache2 -y
sudo mkdir /var/www/html/test.dev
sudo chown -R $USER:$USER /var/www/html/test.dev && sudo chmod -R 755 /var/www
sudo vim /var/www/html/test.dev/index.html
sudo nano /etc/apache2/sites-available/test.dev.conf
sudo apache2ctl configtest
sudo a2ensite test.dev.conf
/etc/init.d/apache2 restart
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install apache2 -y
sudo mkdir /var/www/html/test.dev
sudo chown -R $USER:$USER /var/www/html/test.dev && sudo chmod -R 755 /var/www
sudo vim /var/www/html/test.dev/index.html
sudo nano /etc/apache2/sites-available/test.dev.conf
sudo apache2ctl configtest
sudo a2ensite test.dev.conf
/etc/init.d/apache2 restart
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install haproxy
ENABLED=1
sudo cp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg_bck
sudo rm /etc/haproxy/haproxy.cfg && sudo vim /etc/haproxy/haproxy.cfg
sudo service haproxy restart
http://192.168.1.6/test.dev/
http://192.168.1.10/test.dev/
http://192.168.1.8/test.dev/
admin:admin
http://192.168.1.6/haproxy?stats