add redirect from HTTP to HTTPS
authorJakob Schlyter <jakob@kirei.se>
Fri, 6 Nov 2015 08:01:47 +0000 (09:01 +0100)
committerJakob Schlyter <jakob@kirei.se>
Fri, 6 Nov 2015 08:01:47 +0000 (09:01 +0100)
src/configuration/Proxies/HAProxy/haproxy.cfg

index e4770f7..faeebad 100644 (file)
@@ -22,6 +22,7 @@ frontend public
     bind *:80
     bind *:443 ssl crt server.pem
     mode http
+    redirect scheme https code 301 if !{ ssl_fc } # redirect HTTP to HTTPS
     default_backend backend
                
 backend backend