Skip to content

Instantly share code, notes, and snippets.

@smakhtin
Created August 29, 2017 13:59
Show Gist options
  • Save smakhtin/304045fe79d799348aee0e741e537965 to your computer and use it in GitHub Desktop.
Save smakhtin/304045fe79d799348aee0e741e537965 to your computer and use it in GitHub Desktop.
Haproxy redirect from 80 to 443
frontend http-frontend
bind *:80
mode http
redirect scheme https code 301 if !{ ssl_fc }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment