diff --git a/docs/site-internet/https.md b/docs/site-internet/https.md new file mode 100644 index 0000000..97e8d25 --- /dev/null +++ b/docs/site-internet/https.md @@ -0,0 +1,11 @@ +# 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 diff --git a/mkdocs.yml b/mkdocs.yml index f718d77..b0c1916 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -65,6 +65,7 @@ nav: - Introduction - Configuration: configuration/introduction.md - Site internet: - Introduction - Site internet: site-internet/introduction.md + - HTTPS: site-internet/https.md - Application web: - Introduction - Application web: application-web/introduction.md - Gitea: application-web/gitea.md diff --git a/site/404.html b/site/404.html index 201a794..f2585cf 100644 --- a/site/404.html +++ b/site/404.html @@ -9,7 +9,7 @@ - + @@ -17,10 +17,10 @@ - + - + @@ -38,7 +38,7 @@ - + @@ -580,6 +580,20 @@ + + + + + +