From aa56b603ab9766c40aa28b4552e34400283aeacc Mon Sep 17 00:00:00 2001 From: James Manuel Date: Mon, 8 Jun 2026 15:51:58 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20fix(apache):=20send=20X-Forw?= =?UTF-8?q?arded-Prefix=20for=20EuroOffice=20SDK=20assets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EuroOffice nginx maps $http_x_forwarded_prefix to construct SDK asset URLs (e.g. /eurooffice/sdkjs/...). Without this header the prefix is empty and the browser requests /sdkjs/... which Caddy routes to Nextcloud → 404. Send X-Forwarded-Prefix as a separate header instead of appending the path to X-Forwarded-Host (as the OnlyOffice block does), matching EuroOffice nginx expectations. Co-Authored-By: Claude Sonnet 4.6 Signed-off-by: James Manuel --- Containers/apache/Caddyfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Containers/apache/Caddyfile b/Containers/apache/Caddyfile index 2fb139c2..a153ed79 100644 --- a/Containers/apache/Caddyfile +++ b/Containers/apache/Caddyfile @@ -54,7 +54,8 @@ http://{$APACHE_HOST}.nextcloud-aio:23973, # For Collabora callback and WOPI req route /eurooffice/* { uri strip_prefix /eurooffice reverse_proxy {$EUROOFFICE_HOST}:80 { - header_up X-Forwarded-Host {http.request.hostport}/eurooffice + header_up X-Forwarded-Host {http.request.hostport} + header_up X-Forwarded-Prefix /eurooffice } } From 4bbd561aba517232f91b54592e4cf4bff37fa6fa Mon Sep 17 00:00:00 2001 From: James Manuel Date: Mon, 8 Jun 2026 23:38:16 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20fix(apache):=20remove=20redu?= =?UTF-8?q?ndant=20X-Forwarded-Host=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Caddy sets X-Forwarded-Host by default in reverse_proxy blocks. The explicit header_up is unnecessary. Co-Authored-By: Claude Sonnet 4.6 Signed-off-by: James Manuel --- Containers/apache/Caddyfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Containers/apache/Caddyfile b/Containers/apache/Caddyfile index a153ed79..9edc7119 100644 --- a/Containers/apache/Caddyfile +++ b/Containers/apache/Caddyfile @@ -54,7 +54,6 @@ http://{$APACHE_HOST}.nextcloud-aio:23973, # For Collabora callback and WOPI req route /eurooffice/* { uri strip_prefix /eurooffice reverse_proxy {$EUROOFFICE_HOST}:80 { - header_up X-Forwarded-Host {http.request.hostport} header_up X-Forwarded-Prefix /eurooffice } }