Error PROPFIND : Unknown error 2 (406)

I’m trying to use Nextcloud to synch my Joplin notes. So i set it on my server using the web installer.

Nextcloud version: 19.0.1
Operating system and version: Linux 4.14.146-225.ELK.el6.x86_64 x86_64
Apache or nginx version:
PHP version: 7.4.9

The issue you are facing:

When i try to set-up the webdav (using as the URL, as i was using before but with cloudamo, and it was fine. So when i try to sync i have this error:

Error. Please check that URL, username, password, etc. are correct and that the sync target is accessible. The reported error was:

PROPFIND : Unknown error 2 (406): <head><title>Not Acceptable!</title></head><body><h1>Not Acceptable!</h1><p>An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.</p></body></html> (Code 406)

Is this the first time you’ve seen this error? : Yes

Steps to replicate it:

  1. Try to set up the WebDav
  2. Enter the url
  3. Get this error

The output of your Nextcloud log in Admin > Logging:

I don't know how to see that

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

Didn't understand what you mean by this

The output of your Apache/nginx/system log in /var/log/____:

Same thing