summaryrefslogtreecommitdiffstats
path: root/.htaccess
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-01-07 17:16:51 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-07 17:16:51 +0100
commite30740648686c6b9e6743f8551487274d43b006c (patch)
tree7a4a7c77d0641c2b819d645ac70bfd8bb91b5bfd /.htaccess
parent6a796ff3cc106d0f8ccc735c01d6355b7b4dafd3 (diff)
parent63974992f9a0244df0bbff891956deec7d35904b (diff)
downloadnextcloud-server-e30740648686c6b9e6743f8551487274d43b006c.tar.gz
nextcloud-server-e30740648686c6b9e6743f8551487274d43b006c.zip
Merge pull request #20966 from knox/master
Do not rewrite letsencrypt .well-known URI
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess2
1 files changed, 2 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index 740329e15a0..bb030c6acca 100644
--- a/.htaccess
+++ b/.htaccess
@@ -45,6 +45,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`
@@ -60,6 +61,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]
</IfModule>
<IfModule mod_mime.c>