From 81d9c16b33e26a90153b82e1aa0df0768d687c56 Mon Sep 17 00:00:00 2001 From: Theodotos Andreou Date: Sun, 14 Jan 2018 23:22:35 +0200 Subject: [PATCH] Updated Setting up a private files folder for Drupal (markdown) --- Setting-up-a-private-files-folder-for-Drupal.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Setting-up-a-private-files-folder-for-Drupal.md b/Setting-up-a-private-files-folder-for-Drupal.md index 8bc7f9b..5b4c799 100644 --- a/Setting-up-a-private-files-folder-for-Drupal.md +++ b/Setting-up-a-private-files-folder-for-Drupal.md @@ -27,9 +27,8 @@ Then use these setting: We need to add this rule under the cms virtualhost configuration (/etc/nginx/sites-enabled/cms) under the **server** section: ``` - # Setup private folder - location ^~ /sites/default/private { - internal; + location ~ ^/sites/.*/files/(private|temp|tmp|backup_migrate) { + deny all; } ```