Update nginx.rst

Discussed here > https://github.com/nextcloud/documentation/pull/2197#discussion_r453641162
This commit is contained in:
Joshua Ruehlig
2020-08-06 03:15:55 -07:00
committed by GitHub
parent 1835250df2
commit f383cf62eb

View File

@@ -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;
}