Skip to content

Instantly share code, notes, and snippets.

@ezhuk
ezhuk / haproxy_force_https
Last active March 28, 2017 20:37
Force HTTPS in HAProxy behind Amazon ELB.
frontend main *:80
acl is_http hdr(X-Forwarded-Proto) http
redirect prefix https://example.com code 301 if is_http