Permalink
Browse files

Nginx docs for denying composer file access (fixes #8011)

  • Loading branch information...
1 parent 9337902 commit 5d3ed12e20435212ccbd676571a4a83909c709fd @chillu chillu committed Feb 15, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 docs/en/installation/nginx.md
@@ -62,6 +62,11 @@ Here is the include file `htaccess`:
location ~ ^/silverstripe-cache {
deny all;
}
+
+ # Deny access to composer
+ location ~ ^/(vendor|composer.json|composer.lock) {
+ deny all;
+ }
# Don't execute scripts in the assets
location ^~ /assets/ {

0 comments on commit 5d3ed12

Please sign in to comment.