惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

Caddy

单位目前业务都是 nginx+手动操作 acme 续期,我想给全整成用 Caddy。目前试着改了一个流量小的业务暂时没发现有什么异常。试问: Caddy2 能用于正经的生产环境吗 hosts 文件中指定域名到 127.0.0.1,https 访问本机 caddy 搭建的 web 网站 - V2EX 这个关于 naiveproxy 配置关于咋写哈 caddy 能不能跟 asp.net 组合建站? - V2EX 写了个 Caddy2 插件 geocn 用于识别中国大陆 ip Caddy 很可能无法和 cdn 共用,浪费了两个人一下午之后换了 nginx 花 5 分钟搞好了 (腾讯七牛 CDN 相关) - V2EX 请教一个 caddy2 的反代规则 - V2EX caddy 能稳定用于简单的生产环境中吗 - V2EX 一个简洁又强大的 Caddy,难用起来也会让人无语 - V2EX CaddyServer 1.0 已发布 - V2EX caddy 服务器返回一个 json - V2EX Caddy Server 已支持 QUIC 协议,又可以折腾新技术了 - V2EX 一个 Caddy Server 的简易入门手册, QwQ - V2EX Caddy Server 作者关于服务器软件是否应该免费写的一篇文章 - V2EX 再推荐一下 Caddy HTTP Server。 - V2EX caddy 一个可以直接当博客程序用的 nginx - V2EX
Caddy file_server 怎么样配置多个目录?
skt041959 · 2020-05-16 · via Caddy

skt041959

V2EX  ›  Caddy

 

skt041959 · 2020 年 5 月 16 日 · 3447 次点击

这是一个创建于 2219 天前的主题,其中的信息可能已经有所发展或是发生改变。

比如 127.0.0.1/e/ 可以访问 E:\ , 127.0.0.1/d/ 可以访问 D:\
stackoverflow 上 Caddy 的问题真的太少了,完全不比 nginx

我像这样写好像不太行

  "apps": {
    "http": {
      "servers": {
        "static": {
          "idle_timeout": 30000000000,
          "listen": [
            ":80"
          ],
          "max_header_bytes": 10240,
          "read_header_timeout": 10000000000,
          "routes": [
            {
              "handle": [
                {
                  "browse": {},
                  "handler": "file_server",
                  "root": "e:"
                }
              ],
              "match": [
                {
                  "path": [
                    "/e/*"
                  ]
                }
              ]
            }
          ]
        }
      }
    }
  }