Nginx搭建WebDAV服务器
Nginx搭建WebDAV服务器
搭建webDAV服务前,先确认已安装nginx。
配置webdav.conf
创建用于webdav的nginx配置文件:
vim /etc/nginx/conf.d/webdav.conf设置内容:
server {
listen 80;
listen [::]:80;
server_name webdav.youdomain.com;
# 认证方式
auth_basic realm_name;
# 存放认证用户名、密码文件(确认有对应权限)
auth_basic_user_file /data/www/webdav/.credentials.list;
root /data/www/webdav/;
# dav allowed method
dav_methods PUT DELETE MKCOL COPY MOVE;
# Allow current scope perform specified DAV method
dav_ext_methods PROPFIND OPTIONS;
# In this folder, newly created folder or file is to have specified permission. If none is given, default is user:rw. If all or group permission is specified, user could be skipped
dav_access user:rw group:rw all:r;
# MAX size of uploaded file, 0 mean unlimited
client_max_body_size 0;
# Allow autocreate folder here if necessary
create_full_put_path on;
}创建用户
用户名
echo -n '$yourname:' | tee -a /data/www/webdav/.credentials.list设置密码
openssl passwd -apr1 | tee -a /data/www/webdav/.credentials.list重新加载nginx
# 检验配置文件
nginx -t
# 重启nginx
nginx -s reload
好文章,辛苦了
CCrraawwlleerrggoo
不错不错,我喜欢看 https://www.ea55.com/
你的文章内容非常精彩,让人回味无穷。http://www.pengruntu123.com
你的文章让我感受到了正能量,非常棒! http://www.55baobei.com/76ZaV2qX4J.html
《有鬼故事》科幻片高清在线免费观看:https://www.jgz518.com/xingkong/94640.html
《极地热浪》电影片高清在线免费观看:https://www.jgz518.com/xingkong/166845.html
《美人为馅》国产剧高清在线免费观看:https://www.jgz518.com/xingkong/70897.html
哈哈哈,写的太好了https://www.lawjida.com/
内容的丰富性和深度让人仿佛置身于知识的海洋,受益匪浅。
结论升华部分可联系更高维度价值观。
案例丰富且贴合主题,论证逻辑环环相扣。
新盘 上车集合 留下 我要发发 立马进裙
2025年10月新盘 做第一批吃螃蟹的人coinsrore.com
新车新盘 嘎嘎稳 嘎嘎靠谱coinsrore.com
新车首发,新的一年,只带想赚米的人coinsrore.com
新盘 上车集合 留下 我要发发 立马进裙coinsrore.com
做了几十年的项目 我总结了最好的一个盘(纯干货)coinsrore.com
新车上路,只带前10个人coinsrore.com
新盘首开 新盘首开 征召客户!!!coinsrore.com
新项目准备上线,寻找志同道合 的合作伙伴coinsrore.com
新车即将上线 真正的项目,期待你的参与coinsrore.com
新盘新项目,不再等待,现在就是最佳上车机会!coinsrore.com
新盘新盘 这个月刚上新盘 新车第一个吃螃蟹!coinsrore.com