0

Following this guide: https://www.drupal.org/documentation/modules/file it says

"When you specify the private directory in admin/config/media/file-system it will automatically create the sub-directory & create a simple .htaccess file with Deny from all."

When you edit your settings.php and add the $settings['file_private_path'] = 'sites/default/files/private' after drush rc it doesn't create the .htaccess file in my sites/default/files/private and I do not know how the correct .htaccess should look so I could add it manually?

enter image description here,

enter image description here

enter image description here

  • In my memory this path needs to be absolute as in /var/www/mydrupal/sites/default/files/prv doesn't it? – leymannx Jul 11 '18 at 18:03
0

Try

Deny from all
# Turn off all options we don't need.
Options None
Options +FollowSymLinks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.