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] [...]