Skip to content

Commit e3be3a1

Browse files
authored
Update default.conf
Protects composer files and folders.
1 parent 86918e5 commit e3be3a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nginx/conf.d/default.conf

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ server {
3535
fastcgi_read_timeout 300;
3636
}
3737

38+
location ~ /(vendor|composer\.lock|composer\.json) {
39+
deny all;
40+
}
41+
3842
location ~ /\.git {
3943
deny all;
4044
}

0 commit comments

Comments
 (0)