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/
内容的丰富性和深度让人仿佛置身于知识的海洋,受益匪浅。
结论升华部分可联系更高维度价值观。
案例丰富且贴合主题,论证逻辑环环相扣。