Disable viewing any directories that start with a period

.git was added a while ago but all hidden directories should also be blocked
This commit is contained in:
FusionPBX 2023-10-14 08:41:09 -06:00 committed by GitHub
parent b57d970b06
commit c28aad31a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,12 @@ server {
location ~ /.git/ {
deny all;
}
location ~ /\.lua {
deny all;
}
location ~ /\. {
deny all;
}
}
server {