mholt / caddy-webdav

WebDAV handler module for Caddy
Apache License 2.0
228 stars 24 forks source link

Issue with Uploading files: 404 Not found (but connecting works fine) #46

Open JGStyle opened 2 months ago

JGStyle commented 2 months ago

Hi, I set my config up according to the documentation:

webdav.my.domain.tld {
    root /home/example/webdav

    basic_auth {
        user $2a$14$myhash.ahlsdfkh.myhash.D9lvsasdl4EPF2xi
    }

    webdav

    log /etc/caddy/access-webdav.log
}

Connecting works fine

cadaver https://webdav.my.domain.tld
Authentication required for restricted on server `webdav.my.domain.tld':
Username: user
Password:

But uploading files does not work, resulting in 404!

dav:/> put ./test.md
Uploading ./test.md to `/test.md':
Progress: [=============================>] 100.0% of 153 bytes failed:
404 Not Found
Terminated by signal 2.
Connection to `webdav.my.domain.tld' closed.

Is it not supported or a misconfiguration on my side? The folder /home/example/webdav has access rights to allow everyone to read, write and execute

heddxh commented 1 month ago

Same here. On Arch Linux, caddy v2.8.4 built with latest commit of this module. get is also not working. Sorry my problem is due to classical subffolder problem , not related to this issue.