Drupal: handle private files

fixes #41
pull/43/head
Szekeres Bálint 2018-11-23 07:55:36 +01:00
parent 9fac474e2e
commit 23140a01e6
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@ location ~ ^/sites/[^/]+/files/.*\.php$ {
# Drupal: deny php in vendor
location ~ /vendor/.*\.php$ {
deny all;
}
# Drupal: handle private files
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}<span ng-if="isLimitReq()">
# Drupal: throttle user functions