.env en moins normalement
This commit is contained in:
parent
f1ef53c4ac
commit
c8343faec7
4 changed files with 9 additions and 12 deletions
|
|
@ -1,14 +1,11 @@
|
|||
Options -Indexes
|
||||
# Rediriger les erreurs serveur vers ton contrôleur
|
||||
# On force le passage par index.php pour que ton routeur reçoive les paramètres
|
||||
ErrorDocument 404 /index.php?ctrl=error&action=error_404
|
||||
ErrorDocument 403 /index.php?ctrl=error&action=error_403
|
||||
|
||||
# --- Sécurité ---
|
||||
<FilesMatch ".env">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
|
||||
<FilesMatch "(composer\.json|composer\.lock|package\.json|package-lock\.json|\.git)">
|
||||
<FilesMatch "(composer\.json|composer\.lock|package\.json|package-lock\.json|\.git|\.env|\.gitignore|env)">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue