add redirection to https from http

if the ssl configuration is launched, we redirect to the https
pages automatically.
This commit is contained in:
Joachim Lusiardi 2016-04-10 19:21:01 +02:00
parent 0a39d8c8b1
commit 1fe8a3c326
1 changed files with 1 additions and 0 deletions

View File

@ -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