diff --git a/public/templates/conf/nginxconfig.io/drupal.conf.html b/public/templates/conf/nginxconfig.io/drupal.conf.html index 938bbfc..57083c4 100644 --- a/public/templates/conf/nginxconfig.io/drupal.conf.html +++ b/public/templates/conf/nginxconfig.io/drupal.conf.html @@ -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; } # Drupal: throttle user functions