From 2bc2eac99400479be2175f5dcd107b6b488ea1c6 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Mon, 16 Feb 2026 08:17:49 +0100 Subject: [PATCH] fix(nextcloud): Fix nginx config for Nextcloud app routing - Change location / from try_files to rewrite for proper app URL handling - Fixes 403 errors when accessing /apps/* URLs after authentication - All URLs now properly route through index.php Co-Authored-By: Claude Opus 4.5 --- .../secubox/secubox-app-nextcloud/files/usr/sbin/nextcloudctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/secubox/secubox-app-nextcloud/files/usr/sbin/nextcloudctl b/package/secubox/secubox-app-nextcloud/files/usr/sbin/nextcloudctl index 9667dc1c..83b7d5a2 100644 --- a/package/secubox/secubox-app-nextcloud/files/usr/sbin/nextcloudctl +++ b/package/secubox/secubox-app-nextcloud/files/usr/sbin/nextcloudctl @@ -438,7 +438,7 @@ server { } location / { - try_files $uri $uri/ /index.php$request_uri; + rewrite ^ /index.php\$request_uri last; } } NGINX