Web server: Add documentation about uncommenting optional SSL block in .htaccess

pull/4218/head
Yannick Warnier 4 years ago committed by GitHub
parent 19e158041b
commit 3a72cab99e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      .htaccess

@ -92,11 +92,16 @@ AddType application/font-woff .woff .woff2
ExpiresByType application/font-woff "access plus 1 month"
</IfModule>
# Force SSL/https - Uncomment if you need it
# RewriteCond %{HTTPS} !=on
# RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Resolving insecure site and mixed-content warnings
# <IfModule mod_headers.c>
# Header always set Content-Security-Policy "upgrade-insecure-requests;"
# </IfModule>
# Force SSL/HTTPS
# We recommend you place this block in your VirtualHost config rather
# than uncommenting it below. However, if you have no other way,
# feel free to uncomment it, but please remember that this file will
# be overwritten during your next Chamilo update.
# Also note this will only work if you have an SSL certificate
# configured elsewhere in your Apache configuration.
#RewriteCond %{HTTPS} !=on
#RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
#<IfModule mod_headers.c>
# Header always set Content-Security-Policy "upgrade-insecure-requests;"
#</IfModule>

Loading…
Cancel
Save