Skip to content

Commit

Permalink
Update .htaccess (#9001)
Browse files Browse the repository at this point in the history
.htaccess will work on both apache v2.2 and v2.4 (without this change, on upgrade, an internal error on the server occurs)
  • Loading branch information
sigmoidal authored Jan 26, 2021
1 parent 1d7d31b commit 208f1db
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@

# Make sure .env files not not browseable if in a sub-directory.
<FilesMatch "\.env$">
Deny from all
# Apache 2.2
<IfModule !authz_core_module>
Deny from all
</IfModule>

# Apache 2.4+
<IfModule authz_core_module>
Require all denied
</IfModule>
</FilesMatch>

</IfModule>

0 comments on commit 208f1db

Please sign in to comment.