Problems with the .htaccess file after updating nextcloud on an orangepi5

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | v9.3.0
  • Distro version | bookworm
  • Kernel version | 5.10.160-legacy-rk35xx
  • Architecture | arm64
  • SBC model | Orange Pi 5 (aarch64)
  • Power supply used |5V 1A RAVpower
  • SD card used | Corsair MP600 Mini 1TB M.2 NVMe

Additional Information (if applicable)

  • Software title | Nextcloud
  • Was the software title installed freshly or updated/migrated? Updated

Steps to reproduce

Nextcloud update to Version 29.0.0

Actual behaviour

  • Your web server is not properly set up to resolve .well-known URLs, failed on: /.well-known/webfinger

Extra details

I followed the steps in the documentation and added this to my /var/www/nextcloud/.htaccess file:


ErrorDocument 403 /nextcloud/index.php/error/403
ErrorDocument 404 /nextcloud/index.php/error/404

<IfModule mod_rewrite.c>
  Options -MultiViews
  RewriteEngine on
  RewriteRule ^\.well-known/carddav /var/www/nextcloud/remote.php/dav [R=301,L]
  RewriteRule ^\.well-known/caldav /var/www/nextcloud/remote.php/dav [R=301,L]
  RewriteRule ^\.well-known/webfinger /var/www/nextcloud/index.php/.well-known/webfinger [R=301,L]
  RewriteRule ^\.well-known/nodeinfo /var/www/nextcloud/index.php/.well-known/nodeinfo [R=301,L]
</IfModule>

But still there `s the error message

Looks like a typo. Should be .htaccess file.

1 Like

thank you, i only wrote it the wrong way here, but the issue is the same .
Your web server is not properly set up to resolve `.well-known` URLs, failed on: `/.well-known/webfinger`

You are missing the / from the beginning of the string.

RewriteRule ^/\.well-known/carddav https://%{SERVER_NAME}/remote.php/dav/ [R=301,L]
RewriteRule ^/\.well-known/caldav https://%{SERVER_NAME}/remote.php/dav/ [R=301,L]

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.