apache https部署

1.生成证书,直接在阿里云或腾讯云中生成此处不再介绍

2.在httpd.conf中取消#LoadModule ssl_module modules/mod_ssl.so的注释

3.开启httpd-ssl.conf/ssl.conf

   a).如果非手动安装Apache,不需要做任何操作

   b).如果手动安装Apache,在httpd.conf中取消#Include conf/extra/httpd-ssl.conf的注释

4).配置httpd-ssl.conf/ssl.conf文件,找到VirtualHost节点

  •    SSLCertificateFile =》2_www.xxxx.com.crt
  •  SSLCertificateChainFile =》1_root_bundle.crt(证书链)
  •    SSLCertificateKeyFile =》2_www.xxxx.com.key
  •    新增DocumentRoot "E:/xxx/xxx"
  •    配置ServerName xxx.xx.xxx:443

5).重启apache, service  httpd restart

   

posted on 2018-01-19 16:38  马文柱  阅读(257)  评论(0编辑  收藏  举报