Testing Environment for Apache Load Balancer
Load Balancer Ip & Hostname :
172.31.25.198 & lbmaster.example.com
Web Server 1 Ip & Hostname :
172.31.18.222 & web1.example.com
Web Server 2 Ip & Hostname :
172.31.31.142 & web2.example.com
Also make an entry in /etc/hosts file, if dns server is not available for each machine.
On Load Balancer
1. Yum install httpd -y
2. systemctl start httpd
3. systemctl enable httpd
4. systemctl status httpd
To configure Load Balancer first make an entry in lb.conf file in /etc/httpd/conf.d/lb.conf
5. vi /etc/httpd/conf.d/lb.conf
Use the below link to get this conf file.
https://mega.nz/file/bhcRiQQK#ArYeZjC...
On Web Application server
1. yum install httpd -y
2. Systemctl start httpd
3. Systemctl enable httpd
4. Systemctl status httpd
Now Create your own index.html file and replace it with the default one.
5. vi /var/www/html/index.html
6. systemctl restart httpd