Glad you were able to get haproxy working. I have a similar setup where I use stunnel in front of haproxy to handle all the ssl. If you need I can paste in some sample config directives.

Also be aware that if you care about logs you should patch stunnel to supper the x-forwarded-for header. Otherwise your app server logs will be filled with the proxy ip. In addition you might want to patch haproxy with the conditional redirect patch for 1.13.5.

I believe both patches can be found on or linked off the haproxy site.

Joseph Kondel


On May 2, 2009, at 10:12, Alexey Pechnikov <pechni...@mobigroup.ru> wrote:

Hello!

On Thursday 30 April 2009 03:29:41 Joseph Kondel wrote:
I've not used pound but do use HAProxy and have found it quite
capable. Some say it's a bit more difficult to setup for the average
user ( mostly because it has A LOT of features / options ) but I doubt
it would give anyone on this list a problem.

Now I did rewrite my Pound configuration to HAProxy and last is more simple and robust. Big thanks to Willy Tarreau for nice solution and for answers on my questions! I will use stunnel for HTTPS access and will add to HAProxy config
some redirections to prevent http authorization.

====================
frontend www
      balance roundrobin
      option forceclose
      bind 0.0.0.0:9999
      acl offline hdr_sub(host) mydomain.ru
      acl stable1 hdr_sub(cookie) serverid=stable1
      acl stable3 hdr_sub(cookie) serverid=stable3
      use_backend back_stable1  if offline stable1
      use_backend back_stable3  if offline stable3
      use_backend back_work     if offline


backend back_stable1
      server stable1 127.0.0.1:8001

backend back_stable3
      server stable3 127.0.0.1:8003

backend back_work
      server work 127.0.0.1:8000
====================

Best regards, Alexey Pechnikov.
http://pechnikov.tel/


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <lists...@listserv.aol.com > with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to