How I got WebDAV working on a Linux server. I like to use Caddy because its easy, robust and reliable.
Download the customized Caddy binary with WebDAV module already added in. The download website may be a bit confusing . Click on the binary you want to select and then click the Download button back near the top of the web page. I think the link below will pull up th epage with the Linux amd64 webDAV enabled binary. Just click download.
Binary file: caddy with webdav
Download here: https://caddyserver.com/download?package=github.com%2Fmholt%2Fcaddy-webdav
Put file here: /usr/bin/caddy
# This will get the hashed password like what is shown in the config file example below.
caddy hash-password #Hashes a password and outputs base64
File on tinyserver: /etc/caddy/Caddyfile
mywebsite.com:447
root * /media/files/data/Public
route {
basicauth {
bubba $2a$14$cs84acya8.Q5ShSxfvnfvndfvnd;jnad0r93evnx[c0hu6mg4bYIsc
}
webdav
}
file_server browse
https://caddyserver.com/docs/running
https://github.com/caddyserver/dist/blob/master/init/caddy.service