From 7b665ade0ab5fdaa0d7c3f7c45e5e2616838e674 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 14 Sep 2021 16:21:31 -0400 Subject: [PATCH] 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. --- public/.htaccess | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/.htaccess b/public/.htaccess index 5061585ade..ac2a6fa8e8 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -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]