1.我遇到的问题:
大家好,我需要你们帮助我处理 caddy 服务器反向代理
例如
Caddy 安装在服务器 Ubuntu 22.04 IP-10.0.0.5 上
通过 VPN 隧道连接 100.100.50.50
并在此服务器 hosts 文件中输入
100.100.50.50 someservice.com
100.100.50.50 someservice2.com
在我的 Windows 机器 hosts 文件中输入此 IP Ubuntu 服务器
10.0.0.5 someservice.com
10.0.0.5 someservice2.com
我尝试通过失眠发帖并收到此错误
2. 错误消息和/或完整日志输出:
* Preparing request to https://someservice.com:9444/oauth2/token
* Current time is 2023-07-06T11:25:18.425Z
* Enable automatic URL encoding
* Using default HTTP version
* Enable SSL validation
* Too old connection (1128 seconds), disconnect it
* Connection 28 seems to be dead!
* Closing connection 28
* Hostname in DNS cache was stale, zapped
* Trying 10.0.0.5:9444...
* Connected to someservice.com (10.0.0.5) port 9444 (#30)
* ALPN, offering h2
* ALPN, offering http/1.1
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* (5454) (IN), , Unknown (72):
*error:0A00010B:SSL routines::wrong version number
* Closing connection 30
3.Caddy版本:
2.6.4 版本
d. 我的完整 Caddy 配置:
:8243 {
reverse_proxy 100.100.50.50:8243
}
:9444 {
reverse_proxy 100.100.50.50:9444
}