Apache 配置https
1、配置https
httpd.conf 增加配置
# 加载模块 LoadModule ssl_module modules/mod_ssl.so # 增加端口监听 Listen 443
2、主机配置
<VirtualHost 0.0.0.0:443> DocumentRoot "/var/www/html" #填写证书名称 ServerName cloud.tencent.com #启用 SSL 功能 SSLEngine on #证书文件的路径 SSLCertificateFile /etc/httpd/ssl/cloud.tencent.com.crt #私钥文件的路径 SSLCertificateKeyFile /etc/httpd/ssl/cloud.tencent.com.key #证书链文件的路径 SSLCertificateChainFile /etc/httpd/ssl/root_bundle.crt </VirtualHost>