Friday, August 13, 2010

Config cluster Load balancer layer 7 support SSL with Heatbeat,Nginx and Haproxy


As Document config Haproxy load balance HTTPS with stunnel(It very easy for config and deploy).But with stunnel you can't detech IP source access to haproxy and Performance can't same as Nginx.So I will intro to you 1 solution resove this problem with Nginx as SSL Reverse Proxy,Heartbeat as cluster and haproxy load balance.

Nginx [engine x] is a HTTP and reverse proxy server, as well as a mail proxy server written by Igor Sysoev. It has been running for more than five years on many heavily loaded Russian sites including Rambler ( According to Netcraft nginx served or proxied 4.70% busiest sites in April 2010. Here are some of success stories: FastMail.FM,,


Step 1:config IP As image

Step 2:install haproxy by rpm packet(if you need install haproxy with last version 1.4.8.Please contact me with,I will give it to you) or you can download Haproxy from

Step 4:Install Nginx by rpm packet(if you need install nginx with last version 0.7.67.Please contact me with,I will give it to you) or you can download Nginx from


Step 1:config haproxy on both Server .You config as image

Step 3:config Nginx on both serve as image

Step 4:access haproxy status pages with url

Step 5:stop Server 1 and access haproxy status page:

if you have question.Please contact me with email


1 comment: