Skip to content

Instantly share code, notes, and snippets.

@aleguerra05
Created September 3, 2019 18:17
Show Gist options
  • Save aleguerra05/1ba73e628cba63dab53bf264fdd077ce to your computer and use it in GitHub Desktop.
Save aleguerra05/1ba73e628cba63dab53bf264fdd077ce to your computer and use it in GitHub Desktop.
redirect port 80 to 443 (ssl)
frontend 80
acl lepath path_beg -i /.well-known/acme-challenge
acl lepath path_beg -i /rancher
redirect scheme https code 302 if !lepath !{ ssl_fc }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment