Skip to content

Commit

Permalink
Nginx docs for denying composer file access (fixes #8011)
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Feb 15, 2013
1 parent 9337902 commit 5d3ed12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/en/installation/nginx.md
Expand Up @@ -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/ {
Expand Down

0 comments on commit 5d3ed12

Please sign in to comment.