global
log 127.0.0.1 local0
maxconn 10000
# user haproxy
# group haproxy
daemon
chroot /var/lib/haproxy
defaults
mode http
log global
option httplog
retries 3
backlog 10000
timeout client 30s
timeout connect 30s
timeout server 30s
timeout http-keep-alive 5s
timeout http-request 15s
frontend public
bind *:80
acl is_websocket hdr(Upgrade) -i WebSocket
use_backend ws if is_websocket #is_websocket_server
default_backend www
backend ws
server ws1 127.0.0.1:82
backend www
timeout server 30s
server www1 127.0.0.1:81
|