Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defaults
- log global
- mode http
- option httplog
- option dontlognull
- timeout connect 5000
- timeout client 10000
- timeout server 10000
- listen stats :70
- stats enable
- stats uri /
- #frontend blancer for web.example.com
- frontend balancer
- bind localhost:80 localhost:81
- mode http
- use_backend web if { chat.abc.com }
- use_backend test if { api.abc.com }
- #backend config for web
- backend web
- # mode http
- option forwardfor
- # http-request set-header X-Forwarded-Port %[dst_port]
- balance roundrobin
- server weba weba:80 check
- server webb webb:80 check
- # server webc webc:80 check
- # option httpchk OPTIONS * HTTP/1.1\r\nHost:\ localhost
- option httpchk GET /
- # http-check expect status 200
- #backend config for for test
- backend test
- # mode http
- option forwardfor
- balance roundrobin
- server test1 test1:81 check
- server test2 test2:81 check
- option httpchk GET /
- # http_check expect status 200
Add Comment
Please, Sign In to add comment