Avoid error 403 with let's encrypt challenge

This commit is contained in:
Ptiom 2019-03-02 14:08:22 +01:00 committed by GitHub
parent d119ffef53
commit 1b56b81cc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# prevent httpd from serving dotfiles (.htaccess, .svn, .git, etc.) - except let's encrypt challenge
RedirectMatch 403 ^/?\.(?!/well-known/acme-challenge/[\w-]{43}$)
RedirectMatch 403 ^/?\.(?!well-known/acme-challenge/[\w-]{43}$)
# ensure permalink when url rewriting was enabled (index.php?r=content/perma&id=6 => /content/perma/?id=6
RewriteCond %{QUERY_STRING} ^r=content(/|%2)perma&id=([0-9]*)$
@ -48,4 +48,4 @@
<FilesMatch "\.(jpg|png|gif|css|js)$">
Header set Cache-Control "private, max-age=3600"
</FilesMatch>
</IfModule>
</IfModule>