Which - HAPROXY vs Nginx for load balancing websites w/SSL termination on the LB?

Posted by StartupTim@reddit | linuxadmin | View on Reddit | 3 comments

Hey all,

So I've read a bit about HAPROXY and Nginx and I'm curious which do you think would be best for my setup:

I will have 1 public server which is the load balancer. This server will need to terminate HTTPS/SSL and then balance between 2 web servers internal to that over normal HTTP, whereas those 2 web servers need to send traffic back out over HTTPS/SSL from the load balancer.

The web servers will be doing standard web content, php, cookie sessions, nothing fancy, though the key is that all traffic must be maintained over SSL, with SSL terminated on the load balancer. The web servers most likely will be Nginx due to performance. I will also be using the non-commercial/free versions of both.

So with that said, which should I choose, HAPROXY or Nginx? Any suggestions on pros/cons? Also, could anybody point me to the best configuration example/tips for doing this (load balancing w/SSL termination)?

Many thanks in advance!!