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
@ -62,6 +62,11 @@ Here is the include file `htaccess`:
|
|||||||
location ~ ^/silverstripe-cache {
|
location ~ ^/silverstripe-cache {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Deny access to composer
|
||||||
|
location ~ ^/(vendor|composer.json|composer.lock) {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
|
||||||
# Don't execute scripts in the assets
|
# Don't execute scripts in the assets
|
||||||
location ^~ /assets/ {
|
location ^~ /assets/ {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user