From 2f165e71b72a4624d7fb7c0a7d6fafa718cb8f45 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Tue, 1 Jan 2019 19:13:00 +0100 Subject: [PATCH 1/2] Improve well-known doc for subdirectory explicitly add RewriteEngine on --- admin_manual/issues/general_troubleshooting.rst | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/admin_manual/issues/general_troubleshooting.rst b/admin_manual/issues/general_troubleshooting.rst index 88af70c1f..546fde82a 100644 --- a/admin_manual/issues/general_troubleshooting.rst +++ b/admin_manual/issues/general_troubleshooting.rst @@ -270,11 +270,14 @@ If your Nextcloud instance is installed in a subfolder called ``nextcloud`` and you're running Apache create or edit the :file:`.htaccess` file within the document root of your Web server and add the following lines:: - RewriteRule ^\.well-known/host-meta /nextcloud/public.php?service=host-meta [QSA,L] - RewriteRule ^\.well-known/host-meta\.json /nextcloud/public.php?service=host-meta-json [QSA,L] - RewriteRule ^\.well-known/webfinger /nextcloud/public.php?service=webfinger [QSA,L] - RewriteRule ^\.well-known/carddav /nextcloud/remote.php/dav/ [R=301,L] - RewriteRule ^\.well-known/caldav /nextcloud/remote.php/dav/ [R=301,L] + + RewriteEngine on + RewriteRule ^\.well-known/host-meta /nextcloud/public.php?service=host-meta [QSA,L] + RewriteRule ^\.well-known/host-meta\.json /nextcloud/public.php?service=host-meta-json [QSA,L] + RewriteRule ^\.well-known/webfinger /nextcloud/public.php?service=webfinger [QSA,L] + RewriteRule ^\.well-known/carddav /nextcloud/remote.php/dav/ [R=301,L] + RewriteRule ^\.well-known/caldav /nextcloud/remote.php/dav/ [R=301,L] + Make sure to change /nextcloud to the actual subfolder your Nextcloud instance is running in. From 764b977a3b89b36b79895b81c741be47f080dd83 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Tue, 1 Jan 2019 19:23:08 +0100 Subject: [PATCH 2/2] Add note about NGINX to well-known troubleshooting --- admin_manual/issues/general_troubleshooting.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin_manual/issues/general_troubleshooting.rst b/admin_manual/issues/general_troubleshooting.rst index 546fde82a..800abb4f5 100644 --- a/admin_manual/issues/general_troubleshooting.rst +++ b/admin_manual/issues/general_troubleshooting.rst @@ -281,6 +281,8 @@ document root of your Web server and add the following lines:: Make sure to change /nextcloud to the actual subfolder your Nextcloud instance is running in. +If you are running NGINX, make sure ``location = /.well-known/carddav {`` and ``location = /.well-known/caldav {`` are properly configured as described in :doc:`../installation/nginx`, adapt to use a subfolder if necessary. + Now change the URL in the client settings to just use: ``https://example.com``