puzzled 发表于 2015-11-20 09:58:18

haproxy 配置缺省的webserver

retries 3
optionredispatch
optionabortonclose
maxconn 65535
timeout connect 5000
timeout client50000
timeout server 50000
timeout check   5s
stats   refresh 30s
stats   uri   /stats
stats   realm   baison-test-Haproxy
stats   auth    admin:admin
stats   hide-version
frontend      www
bind            192.168.32.11:80

#
acl             url_static            path_end                .html .gif .png .jpg .css .js
use_backend      webserver_8001         if                      url_static
default_backendwebserver_8001
backend webserver_8001
mode            http
balance         roundrobin
server          webhost01_8001          192.168.32.11:8001   check inter 2000 fall 3 weight 20
页: [1]
查看完整版本: haproxy 配置缺省的webserver