WebDAV on Alpine
With nginx, WebDAV is only available in edge. (or at least it was in 2018 or so)
sed -i -e 's/v[[:digit:]]\..*\//edge\//g' /etc/apk/repositories
apk update;apk upgrade
Then you can install nginx and the htpasswd too
apk add nginx-mod-http-dav-ext
apk add apache2-utils
htpasswd -c /etc/nginx/conf.d/passwords user1
sudo mkdir /var/lib/nginx/tmp/
server {
listen 80 default_server;
listen [::]:80 default_server;
# Try some media
location /video/ {
alias /srv/media/video/;
autoindex on;
dav_ext_methods PROPFIND OPTIONS;
auth_basic "Authentication Required";
auth_basic_user_file /etc/nginx/conf.d/passwords;
}
}
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.