HAProxy: Configure HTTP Load Balancing Server in Rocky Linux 8.5
Important Links
- VLE Insurance Process Flow
- RAP Registration Flow
- RAP and VLE INS POSP
- Life Insurance
- Life Insurance Renewal
- Motor Comprehensive
- Motor Third Party
- Personal Accident
- Fire and Allied Perils
- Health Insurance
- Pradhan Mantri Fasal Bima Yojana (PMFBY)
- NPS
- CSC Digipay Commission Chart
- HDFC Commission
- Axis Bank Commission
- UCO Bank Commission
- ICICI Bank Commission
- BOB Bank Commission
- BOI Bank Commission
- CBI Bank Commission
- LIFE INSURANCE RENEWAL HANDBOOK
- Difference Between CSC RAP Insurance And CSC VLE Insurance - Registration | Products | Commission
- LIC Commission
HAProxy: Configure HTTP Load Balancing Server in Rocky Linux 8.5
in This Tutorial you will Learn " HAProxy: Configure HTTP Load Balancing Server in Rocky Linux 8.5"
HAProxy is a free and open source software that provides a high availability load balancer and proxy server for TCP and HTTP-based applications that spreads requests across multiple servers. It is written in C and has a reputation for being fast and efficient.
-----------+---------------------------+--------------------------+-------------
| | |
|192.168.1.20 |192.168.1.80 |192.168.1.70
+----------+-----------+ +-----------+----------+ +-----------+----------+
| [ www.primaryhost.com ] | | [ www.tertiary.com ] | | [ www.example.com ] |
| HAProxy | Web Server#1 | Web Server#2 |
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install haproxy
gedit /etc/haproxy/haproxy.cfg &>/dev/null
frontend http-in
# listen 80 port
bind *:80
# set default backend
default_backend backend_servers
# send X-Forwarded-For header
option forwardfor
backend backend_servers
# balance with roundrobin
balance roundrobin
# define backend servers
server node01 192.168.1.80:80 check
server node02 192.168.1.70:80 check
systemctl enable --now haproxy ; systemctl daemon-reload ; systemctl restart haproxy
systemctl status firewalld
________________________________________________________________________________________
Backends Web server 1-
cat /etc/system-release ; sestatus ; hostname ; hostname -I
dnf install httpd -y
gedit /etc/httpd/conf/httpd.conf &>/dev/null
LogFormat "\"%{X-Forwarded-For}i\" %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
systemctl restart httpd
echo "<h1>This is a Test Page www.tertiary.com</h1>" > /var/www/html/index.html
_________________________________________________________________________________________
Backends Web server 2-
cat /etc/system-release ; sestatus ; hostname ; hostname -I
yum install httpd -y
gedit /etc/httpd/conf/httpd.conf &>/dev/null
LogFormat "\"%{X-Forwarded-For}i\" %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
systemctl restart httpd
echo "<h1>This is a Test Page www.example.com</h1>" > /var/www/html/index.html
Latest POst
- LPG Gas Subsidy Check by mobile number
- PMEGP Loan Aadhar Card Se
- E Shram Card Balance Check Number
- How to Migrate CentOS 7 to AlmaLinux 8
- How to Install WHM/cPanel in Almalinux?
- Install cPanel on Rocky Linux 9 Server
- How to Link Aadhaar with UAN
- How To Setup LVS (Linux Virtual Server) Load Balancer on Rocky Linux 8.5
- Setup Quick DNS Server On Rocky Linux 8.5 Using Dnsmasq
- How To Install Ruby on Rails with Mysql on Rocky Linux 8.5
Recent Updates
- LPG Gas Subsidy Check by mobile number
- PMEGP Loan Aadhar Card Se
- E Shram Card Balance Check Number
- How to Migrate CentOS 7 to AlmaLinux 8
- How to Install WHM/cPanel in Almalinux?
- Install cPanel on Rocky Linux 9 Server
- How to Link Aadhaar with UAN
- How To Setup LVS (Linux Virtual Server) Load Balancer on Rocky Linux 8.5
- Setup Quick DNS Server On Rocky Linux 8.5 Using Dnsmasq
- How To Install Ruby on Rails with Mysql on Rocky Linux 8.5
Haryana Goverment Schemes
- Old Age Samman Allowance
- Widow Pension Scheme
- Disability Pension Scheme
- Financial Assistance to Destitute Children Scheme
- Financial Assistance to Non School Going Disabled Children
- Allowance to Dwarfs
- Allowance to Eunuchs
- Rajiv Gandhi Pariwar Bima Yojna
- Post-Matric Scholarship
- Merit Cum Means
- Pre-Matric Scholarship
- About MMPSY
- MMPSY PPT
- MMPSY HINDI Manual
- MMPSY English Manual
- Premium Chart for PMMDY (Pension Plan)
- Parivar Pehchan Patra (PPP)
- Download Family ID
- PMSVANidhi Process Flow
- PM SVANidhi through CSCs
- About PMSYM
- PMSYM Morpho Setting
- PMSYM Creative & FAQ
- PMSYM Process Manual