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

相關文章
相關標籤/搜索