1.生成证书,直接在阿里云或腾讯云中生成此处再也不介绍apache
2.在httpd.conf中取消#LoadModule ssl_module modules/mod_ssl.so的注释阿里云
3.开启httpd-ssl.conf/ssl.confrest
a).若是非手动安装Apache,不须要作任何操做ssl
b).若是手动安装Apache,在httpd.conf中取消#Include conf/extra/httpd-ssl.conf的注释module
4).配置httpd-ssl.conf/ssl.conf文件,找到VirtualHost节点配置
5).重启apache, service httpd restartservice