Add rewrites for nodeinfo and webfinger services.

Add Apache rewrite rules for webfinger and nodeinfo in case NC is installed in a subdirectory. This fixes #6157.

Signed-off-by: stephang <288494+stephang@users.noreply.github.com>
This commit is contained in:
stephang
2021-09-11 20:06:02 +02:00
committed by backportbot[bot]
parent f84771843f
commit c8becb35ac

View File

@@ -262,6 +262,8 @@ document root of your Web server and add the following lines::
RewriteEngine on
RewriteRule ^\.well-known/carddav /nextcloud/remote.php/dav [R=301,L]
RewriteRule ^\.well-known/caldav /nextcloud/remote.php/dav [R=301,L]
RewriteRule ^\.well-known/webfinger /nextcloud/index.php/.well-known/webfinger [R=301,L]
RewriteRule ^\.well-known/nodeinfo /nextcloud/index.php/.well-known/nodeinfo [R=301,L]
</IfModule>
Make sure to change /nextcloud to the actual subfolder your Nextcloud instance is running in.