ServerName projects.csgalileo.org
DocumentRoot /var/www/html
Alias /.well-known/acme-challenge/ /var/www/html/.well-known/acme-challenge/
Options None
AllowOverride None
ForceType text/plain
RedirectMatch 404 "^(?!/\.well-known/acme-challenge/[\w-]{43}$)"
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/.well-known.*
RewriteRule ^/?(.*) https://%{SERVER_NAME}:443/$1 [R,L]
# Redirect permanent / https://projects.csgalileo.org/
# ...
SSLengine on
SSLCertificateFile /etc/ssl/certs/mail.csgalileo.org.cer
SSLCertificateKeyFile /etc/ssl/private/mail.csgalileo.org.key
SSLCertificateChainFile /etc/apache2/fullchain.cer
SSLCACertificateFile /etc/ssl/certs/ca.cer