Skip to content
Snippets Groups Projects
Unverified Commit 208f1db3 authored by sigmoidal's avatar sigmoidal Committed by GitHub
Browse files

Update .htaccess (#9001)

.htaccess will work on both apache v2.2 and v2.4 (without this change, on upgrade, an internal error on the server occurs)
parent 1d7d31b9
Branches
No related tags found
No related merge requests found
...@@ -5,7 +5,15 @@ ...@@ -5,7 +5,15 @@
# Make sure .env files not not browseable if in a sub-directory. # Make sure .env files not not browseable if in a sub-directory.
<FilesMatch "\.env$"> <FilesMatch "\.env$">
# Apache 2.2
<IfModule !authz_core_module>
Deny from all Deny from all
</IfModule>
# Apache 2.4+
<IfModule authz_core_module>
Require all denied
</IfModule>
</FilesMatch> </FilesMatch>
</IfModule> </IfModule>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment