ServerName ServerAlias www. DocumentRoot /home// CustomLog /var/log/apache2/domlogs/.log combined # /> Require all denied # /> 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 /> 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"