From 93736a244fcff82ce3a8d42b7c2ec0436872f3d3 Mon Sep 17 00:00:00 2001 From: gcolpart Date: Thu, 13 Oct 2016 19:18:32 +0200 Subject: [PATCH] =?UTF-8?q?pr=C3=A9cision=20pour=20le=20VH=C2=A0HTTPS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoApache.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HowtoApache.md b/HowtoApache.md index 0b04b1c8..42d265be 100644 --- a/HowtoApache.md +++ b/HowtoApache.md @@ -183,8 +183,10 @@ La configuration d'un VirtualHost pour HTTPS pourra ainsi ressembler à : ~~~{.apache} + ServerName secure.example.com + ServerAlias www.example.com example.com RewriteEngine On - RewriteRule ^/(.*) https://example.com/$1 [L,R=permanent] + RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R=permanent] [...]