Setting Synchronization with apache webdav

Joplin 1.0.174
Ubuntu 18.04 LTE

I am trying to use apache webdav module for synchronization of notes between my phone and my computer.

whenever I try to synchronize An error of this type is shown:

Last error: Error: MKCOL .sync/: Unknown error 2 (401): 401 Unauthorized

Unauthorized

This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn’t understand how to supply the credentials required.


Apache/2.4.29 (Ubuntu) Server at (here is my ip address) Port 80 </htm

I have created a Joplin folder under the shared webdav directory. The step of setting sync.target has confused me. (how do you do this?)

Thanks for the application and the help.

  • Are you set up basic auth in Apache config for this folder?
  • www user (in common case www-data) must be a owner of folder Joplin
  • Try make directory (mkcol) by cadaver. If cadaver can’t create directory, that is your Apache server config issue.
  • I am using digest authentication. Is basic authentication necessary?
  • yes it is the owner of the folder
    • i did this by the following command:
      sudo chown -R www-data:www-data /var/www/
  • Cadaver can write in the webdav directory(where the Joplin directory is created by me)

Oh. I can’t help with Apache. I try on Lighttpd and then mkcol fail but Lighttpd not support all WebDAV functions. Now My Joplin sync with WebDAV on Nginx and Basic Auth. Maybe try Basic Auth too?

That's correct, only Basic auth is supported for now.

I did try basic authentication, the authentication was apparently done but a new issue popped up:
The requested method PROPFIND is not allowed for this URL

Apache is configure to listing directory? Test in cadaver -> ls -> this command send PROPFIND to WebDAV server. Have you some mod_allowmethods install and AllowMethods key in config file?