SHORT INTRODUCTION
An SSL certificate for Secure Socket Layer is used to secure and secure communications between the browser and the server. An SSL certificate is also known as a digital certificate. An SSL connection protects sensitive data such as us credit card information and passwords that are validated during each visit. When you buy an SSL certificate from a trusted third party they will say that your SSL certificate is valid and legally used by its owners.
We need one Haproxy-server(192.168.33.25) & two client-server: client1(192.168.33.30) & client2(192.168.33.31), Make sure all are accessible
Login into both client servers – 192.168.33.30 & 192.168.33.31
Step 1: Install the Apache Server on both Client Servers :
Start & Enable their Services:
Now, need to create test pages that we will use later on to test out the HAProxy setup :
For Testing: Open your browser and Type your Client’s Server-IP as shown below-
Login into a Haproxy server – 192.168.33.25
Step 2: Installing and Configuring HAProxy Server on CentOS 8
Start & Enable their Services:
Now install & configure rsyslog –
Search & uncomment the below lines:
Add the below lines in the same file
Save & Exit
Restart the rsyslog service
Now, Configure Haproxy file
Add the below lines in the file
In Stats auth fosnix:admin@123 replace fosnix with your username and admin@123 with your password
Now, Restart the Haproxy
If your firewall is on then allow the HTTP Services by the below commands:
Now, Open your browser and Type your Haproxy Server-IP with port “:80”, eg – http://192.168.33.25:80 as shown below-
Browse http://YOUR-SERVER-IP/haproxy?stats
Enter your login-ID
No responses yet