diff --git a/common/manual/server_config/rhymix-nginx-subdir.conf b/common/manual/server_config/rhymix-nginx-subdir.conf index 06d370827..335c1626c 100644 --- a/common/manual/server_config/rhymix-nginx-subdir.conf +++ b/common/manual/server_config/rhymix-nginx-subdir.conf @@ -25,6 +25,11 @@ location ~ ^/rhymix/(.+)\.min\.(css|js)$ { try_files $uri $uri/ /rhymix/$1.$2; } +# fix download URL when other directives for static files are present +location ~ ^/rhymix/files/download/ { + try_files $uri $uri/ /rhymix/index.php$is_args$args; +} + # all other short URLs location /rhymix/ { try_files $uri $uri/ /rhymix/index.php$is_args$args; diff --git a/common/manual/server_config/rhymix-nginx.conf b/common/manual/server_config/rhymix-nginx.conf index 04306e0bd..53a64c23c 100644 --- a/common/manual/server_config/rhymix-nginx.conf +++ b/common/manual/server_config/rhymix-nginx.conf @@ -25,6 +25,11 @@ location ~ ^/(.+)\.min\.(css|js)$ { try_files $uri $uri/ /$1.$2; } +# fix download URL when other directives for static files are present +location ~ ^/files/download/ { + try_files $uri $uri/ /index.php$is_args$args; +} + # all other short URLs location / { try_files $uri $uri/ /index.php$is_args$args;