Skip to content

cPanel 服务器部署 IP SSL

适用于有 WHM 权限的 cPanel 服务器。

准备

将私钥、证书和中间证书链合并到一个文件,例如:

text
/home/username/ssl/combined

请将 username 替换为实际 cPanel 用户名。

WHM 配置

进入:

text
WHM -> Service Configuration -> Apache Configuration -> Include Editor

Pre Main IncludePre VirtualHost Include 中加入对应 Apache SSL 配置。

示例字段需要替换:

  • ip_address:你的公网 IP
  • username:cPanel 用户名
  • DocumentRoot:网站目录

保存后重启 Apache。

Released under internal 12SSL documentation guidelines.