From 5322dff9dd1221e919722a04567c7fd872a1d50b Mon Sep 17 00:00:00 2001 From: pdiogoantunes Date: Mon, 19 Feb 2018 16:49:51 +0100 Subject: [PATCH] =?UTF-8?q?ajout=20op=C3=A9ration=20logique=20redirection?= =?UTF-8?q?=20https?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoApache.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HowtoApache.md b/HowtoApache.md index 895b0546..6fa29dc9 100644 --- a/HowtoApache.md +++ b/HowtoApache.md @@ -265,7 +265,8 @@ La configuration d'un VirtualHost pour HTTPS pourra ainsi ressembler à : #SSLCertificateChainFile /etc/ssl/certs/certificates_chain.pem RewriteEngine On - RewriteCond %{HTTPS} !=on + RewriteCond %{HTTPS} !=on [OR] + RewriteCond %{HTTP_HOST} !^secure.example.com$ RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R=permanent] ~~~