[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Проблема с reverse-proxy



Hello!

Собственно, задача решена, если кому интересно, дублирую свое сообщение в эту 
рассылку, раз уж вопрос и здесь задавал.

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/

Reply to: