It's normal.
Either you configure a listen proxy or a set of 2 proxies: a frontend and a backend.
So in your case, configuration should look like:
> frontend proxy-https *:443
> mode tcp
> option ssl-hello-chk
> balance roundrobin
> default_backend back-https
> backend back-https
> option httpchk GET /test.txt
> http-check expect string OK
> server testweb01 192.168.1.1:443 check port 80 inter 5000 fastinter
> 1000 downinter 1000 rise 2 fall 2
> server testweb02 192.168.1.2:443 check port 80 inter 5000 fastinter
> 1000 downinter 1000 rise 2 fall 2
cheers
On Wed, Nov 23, 2011 at 6:43 PM, Ricardo F <rikr_#hotmail.com> wrote:
> Hello,
> I'm trying to confiugre haproxy with https. I have a problem when I use
> backend, but, when I dont' use backend, it works, it's extrange.
> Working conf:
> listen proxy-https *:443
> mode tcp
> # option ssl-hello-chk
> balance roundrobin
> option httpchk GET /test.txt
> http-check expect string OK
> server testweb01 192.168.1.1:443 check port 80 inter 5000 fastinter
> 1000 downinter 1000 rise 2 fall 2
> server testweb02 192.168.1.2:443 check port 80 inter 5000 fastinter
> 1000 downinter 1000 rise 2 fall 2
>
> Not working conf:
>
> listen proxy-https *:443
> mode tcp
> option ssl-hello-chk
> balance roundrobin
> default_backend back-https
> backend back-https
> option httpchk GET /test.txt
> http-check expect string OK
> server testweb01 192.168.1.1:443 check port 80 inter 5000 fastinter
> 1000 downinter 1000 rise 2 fall 2
> server testweb02 192.168.1.2:443 check port 80 inter 5000 fastinter
> 1000 downinter 1000 rise 2 fall 2
>
> Any idea, why?
>
> Regards!,
>
> Ricardo F.
>
Received on 2011/11/23 23:06
This archive was generated by hypermail 2.2.0 : 2011/11/23 23:15 CET