{"id":2335,"date":"2022-02-16T19:11:00","date_gmt":"2022-02-16T11:11:00","guid":{"rendered":"https:\/\/blog.francis67.cc\/?p=2335"},"modified":"2022-02-16T19:11:01","modified_gmt":"2022-02-16T11:11:01","slug":"nginx-%e6%90%ad%e5%bb%bawebdav-%ef%bc%88%e5%9f%ba%e4%ba%8e%e5%ae%9d%e5%a1%94%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.francis67.cc\/?p=2335","title":{"rendered":"nginx \u642d\u5efawebdav \uff08\u57fa\u4e8e\u5b9d\u5854\uff09"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"\u524d\u63d0\">\u524d\u63d0<\/h2>\n\n\n\n<p>\u6211\u4eec\u5df2\u7ecf\u6709\u4e00\u4e2a\u53ef\u4ee5\u8fd0\u884c\u7684\u5b9d\u5854\u9762\u677f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u5177\u4f53\u5185\u5bb9\">\u5177\u4f53\u5185\u5bb9<\/h2>\n\n\n\n<p>1. \u4f7f\u7528\u547d\u4ee4 nginx -V\uff0c\u67e5\u770b\u5f53\u524dnginx \u662f\u5426\u5305\u542b http_dav_module \u6a21\u5757<\/p>\n\n\n\n<p>2. \u65b0\u5efa\u4e00\u4e2a\u7f51\u7ad9\uff0c\u505a\u597d\u57df\u540d\u89e3\u6790\uff0c\u914d\u7f6ephp\u4e3a\u7eaf\u9759\u6001<\/p>\n\n\n\n<p>3. \u5728\u7f51\u7ad9\u8bbe\u7f6e->\u914d\u7f6e\u6587\u4ef6\u7684\u6700\u540e\u6dfb\u52a0<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    # add 2021-12-26\n    location \/ {\n        root [your path]; #\u6ce8\u610f\u4fee\u6539\u6210\u81ea\u5df1\u7684\u76ee\u5f55\n        #client_max_body_size 102400M; #\u5927\u6587\u4ef6\u652f\u6301\n        autoindex on;\n        dav_methods PUT DELETE MKCOL COPY MOVE;\n        # \u9700\u8981 nginx-dav-ext-module \u624d\u6709\u4e0b\u9762\u7684\u9009\u9879\n        dav_ext_methods PROPFIND OPTIONS LOCK UNLOCK;\n        create_full_put_path  on;\n    }<\/pre>\n\n\n\n<p>4. \u5728\u7f51\u7ad9\u76ee\u5f55\uff0c\u4e2d\u6dfb\u52a0\u8d26\u53f7\u5bc6\u7801\uff0c\u63a7\u5236\u8bbf\u95ee\u6743\u9650<\/p>\n\n\n\n<p>\u81f3\u6b64\u5229\u7528nginx \u6210\u529f\u642d\u5efa\u4e86webdav\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u4f7f\u7528\u7f51\u9875\u6216\u8005WinSCP\u7b49\u5176\u4ed6\u5ba2\u6237\u7aef\u8bbf\u95ee<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u63d0 \u6211\u4eec\u5df2\u7ecf\u6709\u4e00\u4e2a\u53ef\u4ee5\u8fd0\u884c\u7684\u5b9d\u5854\u9762\u677f \u5177\u4f53\u5185\u5bb9 1. \u4f7f\u7528\u547d\u4ee4 nginx -V\uff0c\u67e5\u770b\u5f53\u524dnginx \u662f\u5426\u5305 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[97,74,377,379,378],"class_list":["post-2335","post","type-post","status-publish","format-standard","hentry","category-vpslog","tag-nginx","tag-vps","tag-webdav","tag-379","tag-378"],"_links":{"self":[{"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/posts\/2335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2335"}],"version-history":[{"count":4,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/posts\/2335\/revisions"}],"predecessor-version":[{"id":2339,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/posts\/2335\/revisions\/2339"}],"wp:attachment":[{"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}