Category: HAProxy

How to Install HAProxy with Yum

Command:
yum -y install haproxy

Configuration File:
/etc/haproxy/haproxy.cfg

Other Common Commands:

Online restart command for haproxy:
service haproxy reload
Hard restart command for haproxy:
systemctl restart haproxy
haproxy status query command: …

How to Install SSL Certificate on HAProxy for HTTPS

Preparation:
You can purchase an SSL certificate or apply for a free certificate on platforms like Qiniu Cloud; we won’t go into detail here.

Check whether SSL is supported:
haproxy -vv ​
Generate a pem certificate (download the certificate in nginx format after applying): cat test.com.crt test.com.key | tee test.com.pem …