{"id":44504,"date":"2020-02-29T15:14:43","date_gmt":"2020-02-29T07:14:43","guid":{"rendered":"http:\/\/4563.org\/?p=44504"},"modified":"2020-02-29T15:14:43","modified_gmt":"2020-02-29T07:14:43","slug":"nginx%e6%8a%98%e8%85%bewebdav%e5%a4%b1%e8%b4%a5%ef%bc%8c%e6%8d%a2caddy%e6%88%90%e5%8a%9f%e4%ba%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=44504","title":{"rendered":"NGINX\u6298\u817eWEBDAV\u5931\u8d25\uff0c\u6362Caddy\u6210\u529f\u4e86"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>xcy1020<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>NGINX\u6298\u817eWEBDAV\u5931\u8d25\uff0c\u6362Caddy\u6210\u529f\u4e86<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 xcy1020 \u4e8e 2020-2-29 14:46 \u7f16\u8f91 <\/p>\n<p> \u6628\u665a\u770b\u5230MJJ\u5927\u4f6c\u4eec\u5206\u4eab\u7684\u65e5\u672c\u7f51\u76d8\u652f\u6301WEBDAV\uff0c\u5fc3\u8840\u6765\u6f6e\u60f3\u642d\u4e00\u4e2a\uff0c<br \/>  \u6dfb\u52a0\u53c2\u6570&#8211;with-http_dav_module &#8211;add-module=\/path\/to\/nginx-dav-ext-module<br \/>  \u91cd\u65b0\u7f16\u8bd1NGINX<br \/>  location \/ {<br \/>  &nbsp; &nbsp; root&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/data\/www;<\/p>\n<p>  &nbsp; &nbsp; client_body_temp_path \/data\/client_temp;<\/p>\n<p>  &nbsp; &nbsp; dav_methods PUT DELETE MKCOL COPY MOVE;<br \/>  &nbsp; &nbsp; dav_ext_methods PROPFIND OPTIONS LOCK UNLOCK;<br \/>  &nbsp; &nbsp; create_full_put_pathon;<br \/>  &nbsp; &nbsp; dav_access&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;group:rwall:r;<\/p>\n<p>  &nbsp; &nbsp; limit_except GET {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;allow 192.168.1.0\/32;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;denyall;<br \/>  &nbsp; &nbsp; }<br \/>  }<br \/>  \u53d1\u73b0\u600e\u6837\u90fd\u4e0d\u884c\uff0c\u4e0d\u662f\u62a5404\u5c31\u662f405<\/p>\n<p>  \u540e\u6765\u8f6c\u6218\u7528Caddy v1\u6210\u529f\u4e86<\/p>\n<p>  dav.hostloc.com {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; tls cpuer@hostloc.com<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; basicauth \/ Mjj hostloc.com<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; webdav \/ {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scope \/data<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; modify true<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  }<br \/>  \u4e0d\u7528https\u8981\u5c06tls cpuer@hostloc.com\u6539\u6210tls off<\/p>\n<p>  \u53c2\u8003\uff1a<br \/>  http:\/\/nginx.org\/en\/docs\/http\/ngx_http_dav_module.html<br \/>  https:\/\/github.com\/arut\/nginx-dav-ext-module<br \/>  https:\/\/caddyserver.com\/v1\/docs\/http.webdav\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u544a\u8f9e<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tcaddy\u8fd8\u662f\u7b80\u5355\u76f4\u63a5yc008t\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xcy1020<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u544a\u8f9e \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-29 14:41<br \/>  caddy\u8fd8\u662f\u7b80\u5355\u76f4\u63a5<\/p>\n<p> yc022t\u6ca1\u529e\u6cd5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>nico<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u544a\u8f9e \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-29 14:41<br \/>  caddy\u8fd8\u662f\u7b80\u5355\u76f4\u63a5<\/p>\n<p>  \u7b49\u5230caddy2\u4f60\u5c31\u4e0d\u8fd9\u4e48\u8ba4\u4e3a\u4e86yc008t \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>ljm1447669873<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tnico \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-29 15:07<br \/>  \u7b49\u5230caddy2\u4f60\u5c31\u4e0d\u8fd9\u4e48\u8ba4\u4e3a\u4e86<\/p>\n<p> 0\u4e3b\u9898\u7684\u795e\u4ed9\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>llyang<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tnginx -t<br \/>  \u67e5\u770b\u4e0b\u95ee\u9898\uff0c\u6bd4\u8f83\u5bb9\u6613\u89e3\u51b3\u5427<\/p>\n<p>  \u4f30\u8ba1\u662fconf\u5199\u7684\u6709\u95ee\u9898\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>xcy1020 \u5927\u4f6c\u6709\u8bdd\u8bf4 : N&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/44504"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=44504"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/44504\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=44504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=44504"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=44504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}