Last active
October 2, 2017 07:13
-
-
Save eengelking/dc1de8bf8c79e02cb4951f7adbc64a64 to your computer and use it in GitHub Desktop.
Rancher HAproxy Redirect
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
# Custom haproxy.cfg | |
frontend 80 | |
redirect scheme https code 301 if !{ ssl_fc } | |
# Custom haproxy.cfg | |
frontend 80 | |
redirect scheme https if { hdr(Host) -i [your.domain.com] } !{ ssl_fc } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment