I am running a drupal site on nginx and I have a civicrm set-up on this site. Whenever I login and goto civicrm dashboard, I am getting this warnings. I have tried searching solution for this, not able to fix it.
Files in the data directory (/home/drupal7/sites/example.org/files/civicrm/custom/) should not be downloadable.
Read more about this warning
Files in the data directory (/home/drupal7/sites/example.org/files/civicrm/upload/) should not be downloadable.
Read more about this warning
I have tried this on my nginx configuration file.
root /home/drupal7;
location ~ /sites/example.org/files/civicrm/(custom|upload) {
deny all;
return 404;
}