mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Nginx docs for denying composer file access (fixes #8011)
This commit is contained in:
parent
9337902fdd
commit
5d3ed12e20
@ -63,6 +63,11 @@ Here is the include file `htaccess`:
|
||||
deny all;
|
||||
}
|
||||
|
||||
# Deny access to composer
|
||||
location ~ ^/(vendor|composer.json|composer.lock) {
|
||||
deny all;
|
||||
}
|
||||
|
||||
# Don't execute scripts in the assets
|
||||
location ^~ /assets/ {
|
||||
try_files $uri $uri/ =404;
|
||||
|
Loading…
x
Reference in New Issue
Block a user