Skip to content

Instantly share code, notes, and snippets.

@voduytuan
Created October 6, 2015 10:17
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save voduytuan/a919c408f61121b6dcc6 to your computer and use it in GitHub Desktop.
Save voduytuan/a919c408f61121b6dcc6 to your computer and use it in GitHub Desktop.
Sample pass through SSL on Haproxy
...
#create new frontend to process 443
frontend https_frontend
bind *:443
mode tcp
option tcplog
default_backend farm_docker2
acl host_docker2 hdr(host) -i docker2.com
use_backend farm_docker2 if host_docker2
...
#Define backend for above frontend
backend farm_docker2
mode tcp
balance roundrobin
server web01 127.0.0.1:5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment