From be915272b4fadd90f1ebb270f7b6ea00b4009b13 Mon Sep 17 00:00:00 2001 From: iexos Date: Wed, 19 Jun 2024 16:41:55 +0200 Subject: [PATCH] fix multi-file downloads, see https://github.com/nextcloud/server/issues/42617#issuecomment-1881958718 --- abra.sh | 2 +- nginx.conf.tmpl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/abra.sh b/abra.sh index 6a669b6..dc049a6 100644 --- a/abra.sh +++ b/abra.sh @@ -1,7 +1,7 @@ #!/bin/bash export FPM_TUNE_VERSION=v5 -export NGINX_CONF_VERSION=v6 +export NGINX_CONF_VERSION=v7 export MY_CNF_VERSION=v5 export ENTRYPOINT_VERSION=v3 export CRONTAB_VERSION=v1 diff --git a/nginx.conf.tmpl b/nginx.conf.tmpl index f7241d1..5a727cd 100644 --- a/nginx.conf.tmpl +++ b/nginx.conf.tmpl @@ -136,6 +136,9 @@ http { # then Nginx will encounter an infinite rewriting loop when it prepends `/index.php` # to the URI, resulting in a HTTP 500 error response. location ~ \.php(?:$|/) { + # Required for legacy support + rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|ocs-provider\/.+|.+\/richdocumentscode(_arm64)?\/proxy) /index.php$request_uri; + fastcgi_split_path_info ^(.+?\.php)(/.*)$; set $path_info $fastcgi_path_info;