I\'m using HAProxy for load balancing and only want my site to support https. Thus, I\'d like to redirect all requests on port 80 to port 443.
How would I do this?<
acl host-example hdr(host) -i www.example.com # for everything not https http-request redirect scheme https code 301 unless { ssl_fc } # for anything matching acl http-request redirect scheme https code 301 if host-example !{ ssl_fc }