From 1fe8a3c326626626ec9318cc2bbaf88367fef7e1 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Sun, 10 Apr 2016 19:21:01 +0200 Subject: [PATCH] add redirection to https from http if the ssl configuration is launched, we redirect to the https pages automatically. --- haproxy_ssl.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/haproxy_ssl.conf b/haproxy_ssl.conf index 0b307c8..4729d1f 100644 --- a/haproxy_ssl.conf +++ b/haproxy_ssl.conf @@ -25,6 +25,7 @@ frontend http bind *:80 reqadd X-Forwarded-Proto:\ http acl letsencrypt-acl path_beg /.well-known/acme-challenge/ + redirect scheme https code 301 if !{ ssl_fc } use_backend letsencrypt-backend if letsencrypt-acl default_backend www-backend