{"id":6423,"date":"2026-05-14T10:42:05","date_gmt":"2026-05-14T02:42:05","guid":{"rendered":"https:\/\/blog.coolcoding.cn\/?p=6423"},"modified":"2026-05-14T10:42:05","modified_gmt":"2026-05-14T02:42:05","slug":"caddy%e7%9a%84%e7%9b%ae%e5%bd%95%e6%b5%8f%e8%a7%88%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=6423","title":{"rendered":"Caddy\u7684\u76ee\u5f55\u6d4f\u89c8\u914d\u7f6e"},"content":{"rendered":"\n<p>\u4e00\u6761\u547d\u4ee4\u884c\u641e\u5b9a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>caddy.exe file-server --browse --root C:\\data --listen :80<\/code><\/pre>\n\n\n\n<p>\u4f46\u662fC\u76d8\u6ee1\u4e86\uff0c\u53c8\u5e0c\u671b\u6302\u8f7d\u65b0\u7684\u76ee\u5f55<\/p>\n\n\n\n<p>\u53ef\u4ee5\u7528Caddyfile<\/p>\n\n\n\n<p>\u4e5f\u53ef\u4ee5\u7528Windows\u7684\u76ee\u5f55\u94fe\u63a5\uff0c\u4f8b\u5982\u5c06 d:\\apk \u6302\u8f7d\u5230 c:\\data\\apk<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mklink \/J \"c:\\data\\apk\" \"d:\\apk\"<\/code><\/pre>\n\n\n\n<p>\u5728\u6d4f\u89c8\u65f6\uff0c\u76ee\u5f55\u4e0a\uff0c\u6709\u4e00\u4e2a\u5c0f\u7bad\u5934\uff0c\u8bf4\u660e\u6210\u529f\u4e86<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"370\" height=\"335\" src=\"https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2026\/05\/image-5.png\" alt=\"\" class=\"wp-image-6424\" srcset=\"https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2026\/05\/image-5.png 370w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2026\/05\/image-5-99x90.png 99w\" sizes=\"(max-width: 370px) 100vw, 370px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u6761\u547d\u4ee4\u884c\u641e\u5b9a \u4f46\u662fC\u76d8\u6ee1\u4e86\uff0c\u53c8\u5e0c\u671b\u6302\u8f7d\u65b0\u7684\u76ee\u5f55 \u53ef\u4ee5\u7528Caddyfile \u4e5f\u53ef\u4ee5\u7528Windows\u7684\u76ee\u5f55\u94fe\u63a5\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/6423"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6423"}],"version-history":[{"count":1,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/6423\/revisions"}],"predecessor-version":[{"id":6425,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/6423\/revisions\/6425"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}