Docs/docs/site-internet/https.md

12 lines
289 B
Markdown
Raw Normal View History

2021-12-14 21:14:53 +01:00
# HTTPS
Virtual Host port 80 - ajouter redirection :
```
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
```
Virtual Host port 443 (créé par Let's Encrypt) : ne pas ajouter de redirection