HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Apache handeling SSL requests and passing them through to HAproxy (http://www.howtoforge.com/forums/showthread.php?t=32665)

gamboni 20th March 2009 21:45

Apache handeling SSL requests and passing them through to HAproxy
 
Hi

I am trying to set up a Haproxy/Apache front end, serving requests to a number of Apache back end servers. The goal is to have Haproxy handle all http requests and since Haproxy can't handle SSL I want Apache to handle the SSL and pass them along to Haproxy. Then Haproxy should do all the reverse proxying for the rest of the back end Apache servers.

So far I have only been able to set this up successfully for http requests handles by Haproxy but unsuccessful in getting this to work with Apache.

Has anyone done this successfully? If yes can you provide examples of the Apache and Haproxy config please?

falko 21st March 2009 22:06

You can try to do this with Apache's reverse proxy feature.

gamboni 22nd March 2009 01:12

Can you provide some examples as far as code for how this done please?

falko 22nd March 2009 16:16

http://www.howtoforge.com/apache_rev...roxy_ispconfig

Another solution might be to use Squid.

wxman 10th June 2009 21:02

I know this is an aging post, but I'm running into the same question. I have HAProxy/heartbeat on one virtual node, and my web server on another. Then the whole thing is duplicated on a second machine. I need to run SSL on a few of my web sites, and I'm using ISPConfig 3. My question is, what to do with ISPConfig? Do you install it on both nodes? If it's installed on the web server node, like it is now, how does it handle the certificate installations? Do you have to install the certificates on both nodes? As you can see, I'm a bit confused.

jbimmerle 3rd September 2009 05:48

Quote:

Originally Posted by wxman (Post 193285)
I know this is an aging post, but I'm running into the same question. I have HAProxy/heartbeat on one virtual node, and my web server on another. Then the whole thing is duplicated on a second machine. I need to run SSL on a few of my web sites, and I'm using ISPConfig 3. My question is, what to do with ISPConfig? Do you install it on both nodes? If it's installed on the web server node, like it is now, how does it handle the certificate installations? Do you have to install the certificates on both nodes? As you can see, I'm a bit confused.

Anyone have any ideas on what would be done in this scenario? I too am curious as I have a similar setup in mind.

Also -- is it confirmed that HAProxy doesn't work with SSL? If it does, would the SSL certificates need to be installed on the load balancers (I plan to have two) or on the webservers? Since the virtual IPs are pointed to the load balancers, I would assume the certificates needed to be on those servers since they are tied to specific IP addresses? Or am I way off base?

Thanks


All times are GMT +2. The time now is 20:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.