mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Avoid error 403 with let's encrypt challenge
This commit is contained in:
parent
d119ffef53
commit
1b56b81cc1
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user