Nginx / 教程收藏 · 2025年12月8日

nginx设置webdav存储

 



   
   location / {
    root    /www/wwwroot/www.XXXX.com; # WebDAV目录路径(自行修改)
    client_max_body_size 102400M; # 大文件支持参数
    charset utf-8; # 编码参数(不设定可能导致中文乱码)
    autoindex on;
    dav_methods PUT DELETE MKCOL COPY MOVE;
    # 需要 nginx-dav-ext-module 才有下面的选项
    dav_ext_methods PROPFIND OPTIONS LOCK UNLOCK;
    create_full_put_path  on;
}