From 27f420e0a797f8a56b5e83e8dd8e19df289c766b Mon Sep 17 00:00:00 2001 From: mbi Date: Sat, 5 Dec 2015 23:22:05 +0100 Subject: [PATCH 1/2] Allow .well-known URI for letsencrypt See https://letsencrypt.readthedocs.org/en/latest/using.html#webroot --- .htaccess | 1 + 1 file changed, 1 insertion(+) diff --git a/.htaccess b/.htaccess index 4f2a6f35af..cb2cc9cf7e 100644 --- a/.htaccess +++ b/.htaccess @@ -42,6 +42,7 @@ RewriteRule ^\.well-known/caldav /remote.php/dav/ [R=301,L] RewriteRule ^remote/(.*) remote.php [QSA,L] RewriteRule ^(build|tests|config|lib|3rdparty|templates)/.* - [R=404,L] + RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.* RewriteRule ^(\.|autotest|occ|issue|indie|db_|console).* - [R=404,L] # Rewrite rules for `front_controller_active` From 1aff941be6ea3c09e86e234b7e2dc77fe4aa3696 Mon Sep 17 00:00:00 2001 From: mbi Date: Tue, 8 Dec 2015 21:11:38 +0100 Subject: [PATCH 2/2] Do not rewrite letsencrypt .well-known URI --- .htaccess | 1 + 1 file changed, 1 insertion(+) diff --git a/.htaccess b/.htaccess index 8a24076dcb..5b0ec05825 100644 --- a/.htaccess +++ b/.htaccess @@ -65,6 +65,7 @@ RewriteCond %{REQUEST_FILENAME} !/status.php RewriteCond %{REQUEST_FILENAME} !/ocs/v1.php RewriteCond %{REQUEST_FILENAME} !/ocs/v2.php + RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.* RewriteRule .* index.php [PT,E=PATH_INFO:$1]