RayOuO 最近的时间轴更新
RayOuO

RayOuO

V2EX 第 544272 号会员,加入于 2021-05-01 15:21:32 +08:00
RayOuO 最近回复了
@Buges 好的,明白了,谢谢
@IvanLi127 好的,谢谢你~
@IvanLi127 如果被代理的 http 服务器 1.1.12 使用 caddy 实现 https ,Caddyfile 如下
```
xxxx {
reverse_proxy localhost:8080
}
```

如果要用 caddy 代理一个 https ,并且配置自己的证书,Caddyfile 应该怎么配置呢?
```
xxxxxxxxx {
reverse_proxy https://xxxx
}
```
这样写提示 Caddyfile fmt 不正确
@IvanLi127 如果被代理的 http 服务器 1.1.12 使用 caddy 实现 https ,Caddyfile 如下
```
a.example.com {
reverse_proxy localhost:8080
}
```

如果要用 caddy 代理一个 https ,并且配置自己的证书,Caddyfile 应该怎么配置呢?
```
example.com {
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5799 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 20ms · UTC 06:01 · PVG 14:01 · LAX 23:01 · JFK 02:01
Developed with CodeLauncher
♥ Do have faith in what you're doing.