add rewrite rule for Let's Encrypt certificates

The LE tools need access to a stable path to automatically obtain
certificates, so add a rewrite rule to allow it.
This commit is contained in:
Mike Frysinger 2021-09-14 16:21:31 -04:00
parent 0d633ce618
commit 7b665ade0a

View file

@ -5,6 +5,9 @@
RewriteEngine On
# Needed for https://letsencrypt.org/ certificates.
RewriteRule ^\.well-known/acme-challenge/ - [END]
# Uncomment these two lines to force SSL redirect in Apache
# RewriteCond %{HTTPS} off
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]