HAProxy: redirect http traffic to https

Bschelst/ August 4, 2017/ Linux/ 0 comments

Within HAProxy it is possible to redirect all http traffic to https.
It is sufficient to add the following rule within the frontend section:

frontend incoming80     bind     redirect scheme https if !{ ssl_fc } 
Share this Post

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>