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:
parent
b57d970b06
commit
c28aad31a1
|
|
@ -44,6 +44,12 @@ server {
|
||||||
location ~ /.git/ {
|
location ~ /.git/ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
location ~ /\.lua {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
location ~ /\. {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue