Compare commits
4
Commits
be12cadea6
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e9a95a6fc | ||
|
|
d6734adc45 | ||
|
|
2b720a2ce1 | ||
|
|
7118ae9f44 |
No files matched your search
@@ -197,6 +197,10 @@ Créez `/etc/apache2/sites-available/netmonster.conf` :
|
|||||||
Require all denied
|
Require all denied
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
<DirectoryMatch "/\.git">
|
||||||
|
Require all denied
|
||||||
|
</DirectoryMatch>
|
||||||
|
|
||||||
<FilesMatch "\.(sql|md)$">
|
<FilesMatch "\.(sql|md)$">
|
||||||
Require all denied
|
Require all denied
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|||||||
@@ -130,6 +130,12 @@ server {
|
|||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Interdire l'accès à tout dossier ou fichier .git
|
||||||
|
location ~ /\.git {
|
||||||
|
deny all;
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user