19
0
Fork 0

précision pour le VH HTTPS

This commit is contained in:
gcolpart 2016-10-13 19:18:32 +02:00
parent 41d72a2cec
commit 93736a244f
1 changed files with 3 additions and 1 deletions

View File

@ -183,8 +183,10 @@ La configuration d'un VirtualHost pour HTTPS pourra ainsi ressembler à :
~~~{.apache}
<VirtualHost *:80>
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]
</VirtualHost>
<VirtualHost *:443>
[...]