302 found-error

Hi
I run NC on my unRAID server.
Version 22.2.8 in Docker.
I followed the original documentation to try to mount the drive on my Ubuntu desktop.
But I get error 302 found.

username@HP-EliteDesk-Ubuntu:~$ sudo mount ~/nextcloud/
Please enter the username to authenticate with server
https://sub.domain.eu:450/apps/files/nc-username or hit enter for none.

  • Username: nc-username*
    Please enter the password to authenticate user nc-username with server
    https://sub.domain.eu:450/apps/files/nc-username or hit enter for none.
  • Password: *
    /sbin/mount.davfs: the server certificate does not match the server name
    /sbin/mount.davfs: the server certificate is not trusted
  • issuer: LSIO Server, Linuxserver.io, Carlsbad, CA, US*
  • subject: LSIO Server, Linuxserver.io, Carlsbad, CA, US*
  • identity: **
  • fingerprint: a very long fingerprint number and letters*
    You only should accept this certificate, if you can
    verify the fingerprint! The server might be faked
    or there might be a man-in-the-middle-attack.
    Accept certificate for this session? [y,N] y
    /sbin/mount.davfs: Mounting failed.
    302 Found

Any ideas/help is very much appreciated…

https://docs.nextcloud.com/server/22/user_manual/en/files/access_webdav.html#creating-webdav-mounts-on-the-linux-command-line

For WebDAV you need this:

https://sub.domain.eu:450/remote.php/dav/files/nc-username

You can find your WebDAV settings after webgui login at the button left under settings.
Read the documentation.