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] ~~~