Merge pull request #116 from jschlyter/haproxy_direct
authorAaron Zauner <azet@azet.org>
Sat, 7 Nov 2015 11:40:08 +0000 (12:40 +0100)
committerAaron Zauner <azet@azet.org>
Sat, 7 Nov 2015 11:40:08 +0000 (12:40 +0100)
add example for redirect from HTTP to HTTPS

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