Last active
July 25, 2016 14:24
-
-
Save vr/fe7897d6dbbc286c0c451c3242a174a6 to your computer and use it in GitHub Desktop.
https handled by haproxy (or not :) )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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