Skip to content

Instantly share code, notes, and snippets.

@vr
Last active July 25, 2016 14:24
Show Gist options
  • Save vr/fe7897d6dbbc286c0c451c3242a174a6 to your computer and use it in GitHub Desktop.
Save vr/fe7897d6dbbc286c0c451c3242a174a6 to your computer and use it in GitHub Desktop.
https handled by haproxy (or not :) )
listen front
bind :443
mode tcp
tcp-request inspect-delay 2s
tcp-request content accept if { req_ssl_hello_type 1 }
acl is_host1 req.ssl_sni -n host1.example.com
use_backend bk_host1 if is_host1
server local 127.1:1443 send-proxy
frontend ssl
bind 127.1:1443 ssl npn http/1.1 crt foo.pem accept-proxy
default_backend bk_http
backend bk_host1
# https servers go here
backend bk_http
# http server goes here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment