Haproxy Configuring HTTPS

Source: Internet
Author: User

Today test Configuration Haproxy proxy HTTPS, has been an error, and later found that the backend is already HTTPS here do not need to specifically specify the

The configuration file is as follows:

Global    log         127.0.0.1 local2     chroot      /var/lib/haproxy     pidfile     /var/run/haproxy.pid    maxconn      4000    user        haproxy     group       haproxy    daemon     stats socket /var/lib/haproxy/statsdefaults    mode                      http    log                      global    option                   httplog    option                   dontlognull     option http-server-close    option forwardfor        except 127.0.0.0/8    option                   redispatch     retries                  3    timeout http-request    10s     timeout queue           1m     timeout connect         10s     Timeout client          1m    timeout server           1m    timeout http-keep-alive 10s     timeout check            10s    maxconn                  3000frontend             h5_f    bind             *:80    mode            http     log              global    use_backend     h5_serverfrontend             h5_w    bind             *:443    mode             tcp     log              global    use_backend     h5_fourbackend  H5_four    mode            tcp     balance         roundrobin     server  h5_f1 10.29.25.11:443 weight 1 maxconn 10000 check  inter 10s    server  h5_f2 10.30.20.9:443 weight 1  maxconn 10000 check inter 10sbackend h5_server    mode             http    balance          roundrobin    server  h5_one  10.29.25.11:80  weight 1 maxconn 10000 check inter 10s    server   h5_tow  10.30.20.9:80 weight 1 maxconn 10000 check inter  10s

Required if the backend is not configured with HTTPS

Global    log         127.0.0.1 local2     chroot      /var/lib/haproxy     pidfile     /var/run/haproxy.pid    maxconn      4000    user        haproxy     group       haproxy    daemon     stats socket /var/lib/haproxy/statsdefaults    mode                      http    log                      global    option                   httplog    option                   dontlognull     option http-server-close    option forwardfor        except 127.0.0.0/8    option                   redispatch     retries                  3    timeout http-request    10s     timeout queue           1m     timeout connect         10s     Timeout client          1m    timeout server           1m    timeout http-keep-alive 10s     timeout check            10s    maxconn                  3000frontend             h5_f    bind             *:80    mode            http     log              global    use_backend     h5_serverfrontend             h5_w    bind             *:443 ssl crt /etc/haproxy/ckl.pem    mode             http     log              global    use_backend      h5_fourbackend h5_four    mode             http     balance          roundrobin    server  h5_f1 10.29.25.11:443  weight 1 maxconn 10000 check inter 10s    server   h5_f2 10.30.20.9:443 weight 1 maxconn 10000 check inter  10sbackend h5_server    mode            http     balance         roundrobin     server  h5_one  10.29.25.11:80 weight 1 maxconn 10000 check  Inter 10s    server  h5_tow  10.30.20.9:80 weight 1  maxconn 10000 check inter 10s


This article is from the "take a deep Breath again" blog, make sure to keep this source http://ckl893.blog.51cto.com/8827818/1944926

Haproxy Configuring HTTPS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.