webdav走的是http协议,
nginx和apache都可以作为webdav服务器,
win可以直接映射网络盘,支持文件读写和锁定。
linux下装davfs2软件包后, 可以直接mount -t davfs https://xxxxxx.com/upload /mnt 这样进行mount
apache2下的配置文件在目录内增加:
Dav On
php_admin_value engine off
AllowOverride None
Order Allow,Deny
Allow from all
AuthType Digest
AuthName bjlx.org.cn
AuthUserFile "/etc/apache2/user.passwd"
AuthDigestProvider file
Options Indexes
user.passwd用apache的htdigest程序来更新。我写了一个php的程序, 可以完成htdigest的功能, 方便大家集成到自己的系统中。