ServerName ServerAlias www. DocumentRoot /home// CustomLog /var/log/apache2/domlogs/.log combined /> Options Indexes FollowSymLinks AllowOverride All Require all granted DirectoryIndex index.php index.html default_page.html # Alias for default_page.html Alias /default_page.html /etc/apache2/default_page.html Require all granted Options -Indexes SetEnvIf Request_URI ^/default_page.html allow_default_page SetHandler "proxy:unix:/run/php/-fpm.sock|fcgi://localhost" # Allow access to .well-known for Certbot //.well-known"> Options Indexes FollowSymLinks AllowOverride None Require all granted Alias /.well-known /home///.well-known ServerName ServerAlias www. DocumentRoot /home// CustomLog /var/log/apache2/domlogs/.log combined SSLEngine on SSLCertificateFile /etc/apache2/ssl/cert.crt SSLCertificateKeyFile /etc/apache2/ssl/cert.key # TLS configuration SSLProtocol TLSv1.2 TLSv1.3 SSLCipherSuite HIGH:!aNULL:!MD5 # Proxy configuration for Varnish ProxyPass "/" "http://127.0.0.1:80/" ProxyPassReverse "/" "http://127.0.0.1:80/" ProxyPreserveHost On /> Options Indexes FollowSymLinks AllowOverride All Require all granted DirectoryIndex index.php index.html default_page.html # Alias for default_page.html Alias /default_page.html /etc/apache2/default_page.html Require all granted Options -Indexes SetEnvIf Request_URI ^/default_page.html allow_default_page SetHandler "proxy:unix:/run/php/-fpm.sock|fcgi://localhost"