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    
redirect scheme https if !{ ssl_fc } 
Share this Post

Leave a Comment

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