Merge pull request #1995 from shyper-ideler/patch-1

added let's encrypt challenge as an exception in RedirectMatch
This commit is contained in:
Lucas Bartholemy 2016-09-25 18:41:25 +02:00 committed by GitHub
commit e725fd4a5a

View File

@ -1,7 +1,7 @@
RewriteEngine on
# prevent httpd from serving dotfiles (.htaccess, .svn, .git, etc.)
RedirectMatch 403 /\..*$
# prevent httpd from serving dotfiles (.htaccess, .svn, .git, etc.) - except let's encrypt challenge
RedirectMatch 403 ^/?\.(?!/well-known/acme-challenge/[\w-]{43}$)
# RewriteBase is required in some hosting environments (Amazon EC2, ...)
#RewriteBase /