letsencrypt excemption for https redirect

This commit is contained in:
ROTTLER Tamas 2022-04-14 10:56:26 +02:00
parent 4ff5d2f53a
commit fcfb3101ce

View File

@ -193,6 +193,7 @@ sub apache {
$c .= " ErrorLog $logbase.notls.err.log\n".
" CustomLog $logbase.notls.log detailed\n".
" RewriteEngine On\n".
" RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/\n".
" RewriteRule ^/(.*) https://%{HTTP_HOST}/\$1 [R,L]\n".
"</VirtualHost>\n".
"<VirtualHost *:443>\n";