diff --git a/conf/nginx.conf b/conf/nginx.conf index 861e10c..d25eb8c 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -75,7 +75,7 @@ location __PATH__/ { # Handle private files through Drupal. Private file's path can come # with a language prefix. location ~ ^(/[a-z\-]+)?/system/files/ { - try_files $uri /index.php?$query_string; + rewrite ^((/[a-z\-]+)?/system/files/(.+))$ /index.php?q=$1 last; } location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {