From f383cf62eb9c129ee91f9a68c08cb9de78ac8bef Mon Sep 17 00:00:00 2001 From: Joshua Ruehlig Date: Thu, 6 Aug 2020 03:15:55 -0700 Subject: [PATCH] Update nginx.rst Discussed here > https://github.com/nextcloud/documentation/pull/2197#discussion_r453641162 --- admin_manual/installation/nginx.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin_manual/installation/nginx.rst b/admin_manual/installation/nginx.rst index 2efc0bc7b..54de040ad 100644 --- a/admin_manual/installation/nginx.rst +++ b/admin_manual/installation/nginx.rst @@ -135,8 +135,8 @@ webroot of your nginx installation. In this example it is rewrite ^/\.well-known/webfinger /public.php?service=webfinger last; rewrite ^/\.well-known/nodeinfo /public.php?service=nodeinfo last; - location /.well-known/carddav { return 301 /remote.php/dav/; } - location /.well-known/caldav { return 301 /remote.php/dav/; } + location = /.well-known/carddav { return 301 /remote.php/dav/; } + location = /.well-known/caldav { return 301 /remote.php/dav/; } } # Rules borrowed from `.htaccess` to hide certain paths from clients @@ -248,8 +248,8 @@ The configuration differs from the "Nextcloud in webroot" configuration above in rewrite ^/\.well-known/webfinger /nextcloud/public.php?service=webfinger last; rewrite ^/\.well-known/nodeinfo /nextcloud/public.php?service=nodeinfo last; - location /.well-known/carddav { return 301 /nextcloud/remote.php/dav/; } - location /.well-known/caldav { return 301 /nextcloud/remote.php/dav/; } + location = /.well-known/carddav { return 301 /nextcloud/remote.php/dav/; } + location = /.well-known/caldav { return 301 /nextcloud/remote.php/dav/; } try_files $uri $uri/ /nextcloud/index.php$request_uri; }