diff --git a/haproxy.sh b/haproxy.sh index 24e8a89..6435548 100644 --- a/haproxy.sh +++ b/haproxy.sh @@ -68,6 +68,15 @@ option forwardfor option http-server-close reqadd X-Forwarded-Proto:\ http + mode http + + #------------------------------------------------------ + # Enable this if you want to use SSL + # ----------------------------------------------------- + + #bind *:443 ssl crt /etc/haproxy/cert.pem + #redirect scheme https code 301 if !{ ssl_fc } + #reqadd X-Forwarded-Proto:\ https acl url_admin path_beg -i /wp-admin /wp-login.php acl url_admin hdr(Cookie) core-backend