webdav

http://nginx.org/en/docs/http/ngx_http_dav_module.html

server {
    listen       80;
    server_name  192.168.1.174;

    #charset koi8-r;
    access_log  /var/log/nginx/webdav.access.log  main;

    location / {
        root   /var/lib/webdav;
        dav_methods PUT DELETE MKCOL COPY MOVE;
        create_full_put_path  on;
        dav_access user:rw group:r all:r;
        index  index.html index.htm;
    }

    location /docs {
        root   /var/lib;
        autoindex on;
    }

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }
}


posted @ 2018-04-14 07:08  110528844  阅读(231)  评论(0编辑  收藏  举报