Drupal 7 sqlite Nginx

Drupal 7 SQLite .ht in the name will tell Apache to prevent the database from being downloaded.
For nginx should be config line like this:
location = /sites/default/files/.ht.sqlite {deny all;}
Now http://www.yoursite.ru/sites/default/files/.ht.sqlite will return 403 Forbidden page

0 comments:

Post a Comment