diff --git a/drupal/rootfs/etc/nginx/shared/drupal.defaults.conf b/drupal/rootfs/etc/nginx/shared/drupal.defaults.conf index 07329aaf..fb71e6fa 100644 --- a/drupal/rootfs/etc/nginx/shared/drupal.defaults.conf +++ b/drupal/rootfs/etc/nginx/shared/drupal.defaults.conf @@ -85,6 +85,11 @@ location ~ ^(/[a-z\-]+)?/system/files/ { # For Drupal >= 7 try_files $uri /index.php?$query_string; } +# handle CSS/JS aggregation through Drupal +location ~ ^/sites/default/files/(css|js)/ { + try_files $uri /index.php?$query_string; +} + location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { try_files $uri @rewrite; expires max;