diff --git a/Setting-up-CiviCRM.md b/Setting-up-CiviCRM.md index 19b34d8..2b418b7 100644 --- a/Setting-up-CiviCRM.md +++ b/Setting-up-CiviCRM.md @@ -74,10 +74,9 @@ Then press the 'Re-check Requirements' button. If you get the green assurance th Add the following configuration in */etc/nginx/sites-available/cms*: ``` -location ~* ^/sites/.*/files/civicrm/(?:ConfigAndLog|custom|upload|templates_c) { - access_log off; - return 404; - } + location ~ ^/sites/.*/files/civicrm/(ConfigAndLog|upload|templates_c|custom) { + deny all; + } ``` Restart *Nginx*: