使用反向代理实现 Apache 服务的域名切换与 HTTPS 加密(含 Certbot 与 FRP 配置)🌐
在构建个人服务时,我们常常需要将 Apache 提供的本地服务通过公网访问,并启用 HTTPS 进行加密通信。本文记录了如何: 🧱 架构概览 本次部署采用了以下结构: arduinoCopyEdit公网用户 ↓ VPS(运行 FRP Server,负责公网端口) ↓ FRP 客户端 → 反向代理服务器(Nginx + Certbot,TLS 终结) ↓ 内网 Apache 主机,仅提供 HTTP 服务(80端口) 🛰️ FRP 配置 FRP 客户端(运行在反代服务器) 配置如下(已脱敏): iniCopyEdit[web_https] type = tcp local_ip = 127.0.0.1 local_port = 443 remote_port = xxxx # 例如 VPS 映射的 …