From 01654fd91983114931891feb228ec1b16ac5b259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Mon, 18 Aug 2025 13:34:11 +0000 Subject: [PATCH] Fix vhost for nextcloud. --- vhost.d/cloud.typename.fr | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vhost.d/cloud.typename.fr b/vhost.d/cloud.typename.fr index d6640d3..0bc46ae 100644 --- a/vhost.d/cloud.typename.fr +++ b/vhost.d/cloud.typename.fr @@ -5,8 +5,9 @@ location ^~ /.well-known { rewrite ^/\.well-known/host-meta\.json /public.php?service=host-meta-json last; rewrite ^/\.well-known/host-meta /public.php?service=host-meta last; - rewrite ^/\.well-known/webfinger /public.php?service=webfinger last; - rewrite ^/\.well-known/nodeinfo /public.php?service=nodeinfo last; + + location = /.well-known/webfinger { return 301 /index.php/.well-known/webfinger; } + location = /.well-known/nodeinfo { return 301 /index.php/.well-known/nodeinfo; } location = /.well-known/carddav { return 301 /remote.php/dav/; } location = /.well-known/caldav { return 301 /remote.php/dav/; }