Skip to content

Instantly share code, notes, and snippets.

@jlbfalcao
Created January 24, 2011 13:05
Show Gist options
  • Save jlbfalcao/793188 to your computer and use it in GitHub Desktop.
Save jlbfalcao/793188 to your computer and use it in GitHub Desktop.
backend websocket_backend
timeout server 864000000
server ws1 localhost:4443 maxconn 200 check
backend web_backend
timeout server 864000000
server w localhost:9292 maxconn 200 check
frontend all 0.0.0.0:8181
timeout client 864000000
default_backend web_backend
# mode tcp
acl is_websocket hdr(Upgrade) -i WebSocket
acl is_websocket hdr_beg(Host) -i ws
use_backend websocket_backend if is_websocket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment