1 2 3 4 5 6 7 8
<VirtualHost *:80> ServerName ... RedirectMatch permanent ^(?!/\.well-known/acme-challenge/).* https://{{ domain }}$0 Alias /.well-known/acme-challenge /var/www/html/letsencrypt/.well-known/acme-challenge </VirtualHost>