Running Multiple Passenger Servers with SSL

60 views
Skip to first unread message

Dana

unread,
May 22, 2012, 3:11:31 PM5/22/12
to phusion-...@googlegroups.com
I'm currently running Passenger/Nginx in production (on top of Ubuntu), with an SSL certificate installed on Nginx (my entire app is served over SSL). 

I want to add a second server for redundancy and performance purposes. Since Passenger and Nginx run on the same machine, it appears that I'm going to need to duplicate the entire app setup I currently have and then run a load balancer in front of the nginx instances. I was thinking about using HAProxy since it supposedly is a better load balancer than Nginx, but it looks like HAProxy doesn't support SSL. So It appears that the optimal config is potentially

nginx -> haproxy -> nginx/passenger (x2)

This seems kind of redundant since I would have to run two levels of nginx servers. Is there a simpler recommended way to set this up?

Tim Olsen

unread,
May 22, 2012, 3:46:52 PM5/22/12
to phusion-...@googlegroups.com
I don't believe HAProxy needs direct SSL support as it can load-balance TCP, which is at a lower level than HTTPS.

In other words, it may work with HTTPS if you set it up to load balance TCP.

Tim

--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To view this discussion on the web visit https://groups.google.com/d/msg/phusion-passenger/-/8rXWRr7AZQYJ.
To post to this group, send email to phusion-...@googlegroups.com.
To unsubscribe from this group, send email to phusion-passen...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/phusion-passenger?hl=en.

Reply all
Reply to author
Forward
0 new messages