1. The problem I’m having:
Hi guys, I’m trying to setup webdav, like all my services, under a path (md5 generated, like a kind of psk). I would like that path the be the root of the dav, translated then to another folder in my filesystem.
There is something wrong with the request and I can’t wrap my head around it.
Thanks in advance for your help!
2. Error messages and/or full log output:
{"level":"error","ts":1726694330.375861,"logger":"http.handlers.webdav","msg":"internal handler error","error":"stat /data/webdav/34995edb340340fab3334bae34343db3: no such file or directory","request":{"remote_ip":"192.168.1.23","remote_port":"61554","client_ip":"192.168.1.23","proto":"HTTP/1.1","method":"PROPFIND","host":"webdav.noshit.net","uri":"/34995edb340340fab3334bae34343db3/","headers":{"Authorization":["REDACTED"],"Content-Length":["179"],"Connection":["keep-alive"],"Content-Type":["text/xml"],"Depth":["0"],"Accept":["*/*"],"User-Agent":["WebDAVFS/3.0.0 (03008000) Darwin/23.6.0 (arm64)"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"","server_name":"webdav.noshit.net"}}}
3. Caddy version:
2.8.4
4. How I installed and ran Caddy:
a. System environment:
UNRAID, x64, Docker v24.0.9
b. Command:
docker run
-d
--name='CaddyV2'
--net='cloud'
--ip='172.18.0.3'
--pids-limit 2048
-e TZ="Europe/Berlin"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="MYNAS"
-e HOST_CONTAINERNAME="CaddyV2"
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.icon='https://d1q6f0aelx0por.cloudfront.net/product-logos/library-caddy-logo.png'
-p '2080:80/tcp'
-p '2443:443/tcp'
-p '2443:443/udp'
-v '/mnt/user/storage/Configurations/caddyv2/data':'/data':'rw'
-v '/mnt/user/appdata/caddyv2':'/config':'rw'
-v '/mnt/user/storage/Configurations/caddyv2/Caddyfile':'/etc/caddy/Caddyfile':'rw' 'caddy:alpine'
d. My complete Caddy config:
*.noshit.net {
tls {
dns cloudflare SOMETOKEN
}
vars psk "34995edb340340fab3334bae34343db3"
handle /{vars.psk}/* {
@webdav host webdav.noshit.net
handle @webdav {
route {
basicauth {
user SOMEHASH
}
root /{vars.psk}/* /data/webdav
webdav
}
error "Access Denied" 403
}
}
}