cPanel 服务器部署 IP SSL
适用于有 WHM 权限的 cPanel 服务器。
准备
将私钥、证书和中间证书链合并到一个文件,例如:
text
/home/username/ssl/combined请将 username 替换为实际 cPanel 用户名。
WHM 配置
进入:
text
WHM -> Service Configuration -> Apache Configuration -> Include Editor在 Pre Main Include 和 Pre VirtualHost Include 中加入对应 Apache SSL 配置。
示例字段需要替换:
ip_address:你的公网 IPusername:cPanel 用户名DocumentRoot:网站目录
保存后重启 Apache。