Include /etc/apache2/sites-available/dominioinclude_test.abitaregliiblei.it.conf # Configurazione per HTTP ServerName ${MIODOMINIO_COMPLETO} DocumentRoot /var/www/${MIODOMINIO_COMPLETO} RewriteEngine on # Redirigi tutto il traffico HTTP verso HTTPS RewriteCond %{SERVER_NAME} =${MIODOMINIO_COMPLETO} [OR] RewriteCond %{SERVER_NAME} =www.${MIODOMINIO_COMPLETO} RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] ErrorLog /var/www/${MIODOMINIO_COMPLETO}/logs/error.log CustomLog /var/www/${MIODOMINIO_COMPLETO}/logs/access.log combined # Configurazione per HTTPS ServerName ${MIODOMINIO_COMPLETO} DocumentRoot /var/www/${MIODOMINIO_COMPLETO} ErrorLog /var/www/${MIODOMINIO_COMPLETO}/logs/error.log CustomLog /var/www/${MIODOMINIO_COMPLETO}/logs/access.log combined Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI AllowOverride All Require all granted RewriteEngine on Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateFile /etc/letsencrypt/live/${MIODOMINIO}/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/${MIODOMINIO}/privkey.pem