added let's encrypt challenge as an exception in RedirectMatch

This commit is contained in:
shyper-ideler 2016-09-20 21:04:57 +02:00 committed by GitHub
parent 1bb209791b
commit 0007cb6280

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 /