How to redirect HTTP traffic to HTTPS with HAProxy

Linux

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 10.1.1.13:80  
redirect scheme https if !{ ssl_fc }