MT6 Haproxy

From The Network People, Inc. - Wiki
Jump to navigation Jump to search
Mail Toaster 6
Start Installation
FreeBSD Upgrade
DNS Upgrade
MySQL Upgrade
ClamAV Upgrade
AVG Upgrade
SpamAssassin Upgrade
Rspamd Upgrade
dspam Upgrade
Vpopmail Upgrade
Haraka Upgrade
Haproxy Upgrade
webmail Upgrade
Monitor Upgrade
testing

Install HAproxy

HAproxy is a HTTP load balancer and proxy. MT6 uses it to route incoming HTTP requests to the jail where each web service runs.


jailmanage haproxy
pkg install -y haproxy
fetch -o /usr/local/etc/haproxy.conf http://mail-toaster.org/install/mt6-haproxy.txt
cat /etc/ssl/private/server.key /etc/ssl/certs/server.crt > /etc/ssl/private/server.pem
grep haproxy_enable /etc/rc.conf || echo 'haproxy_enable="YES"' >> /etc/rc.conf
service haproxy start