From 335cc8b06fdb1c3cea8b0fb344bfa9a0c2ffd962 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Wed, 28 Oct 2020 19:06:04 +0100 Subject: [PATCH] [fix] Private uploaded files --- conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index f9fefba..2ce7f10 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)$ {