Prevent direct viewing of .env file if installed in a subdirectory

This commit is contained in:
snipe 2016-04-19 19:44:09 -07:00
parent 5c99f9da15
commit b2e5fa84ea

11
.htaccess Normal file
View file

@ -0,0 +1,11 @@
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
# Make sure .env files not not browseable if in a sub-directory.
<FilesMatch "\.env$">
Deny from all
</FilesMatch>
</IfModule>