apache https部署

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节点配置

  •    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 restartservice

相关文章
相关标签/搜索