Skip to content

Instantly share code, notes, and snippets.

@eengelking
Last active October 2, 2017 07:13
Show Gist options
  • Save eengelking/dc1de8bf8c79e02cb4951f7adbc64a64 to your computer and use it in GitHub Desktop.
Save eengelking/dc1de8bf8c79e02cb4951f7adbc64a64 to your computer and use it in GitHub Desktop.
Rancher HAproxy Redirect
# 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