Prevent direct viewing of .env file if installed in a subdirectory
This commit is contained in:
parent
5c99f9da15
commit
b2e5fa84ea
1 changed files with 11 additions and 0 deletions
11
.htaccess
Normal file
11
.htaccess
Normal 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>
|
Loading…
Add table
Reference in a new issue