SSL证书服务
您当前的位置:帮助中心 > 常见问题 > 相关服务 > SSL证书服务

apache部署https

点击数:160 更新时间:2020-03-18

      

1、已在中资源购买了SSL证书(注意:服务器要打开443端口)

 

2、打开php.ini扩展。

extension=php_openssl.dll

 

3、打开httpd.conf扩展

Include conf/extra/httpd-ssl.conf

 

4、把下好的证书复制到

Apacheconfssl

 

5、编辑http-ssl.conf文件(位置:Apacheconfextra)

删除里http-ssl.conf的内容

键入代码:

SSLStrictSNIVHostCheck off

SSLCipherSuite AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL

SSLProtocol all -SSLv2 -SSLv3

<VirtualHost *:443>

    DocumentRoot "C:projecthttps" #项目地址

    ServerName www.scenewood.top    #域名

    ServerAlias scenewood.top       #域名

  <Directory "C:projecthttps">    #项目地址

      Options FollowSymLinks ExecCGI

      AllowOverride All

      Order allow,deny

      Allow from all

      Require all granted

  </Directory>

SSLEngine on

SSLCertificateFile "C:phpstudyApacheconfsslscenewood2_scenewood.top.crt"     #证书 2_域名_crt

SSLCertificateKeyFile "C:phpstudyApacheconfsslscenewood3_scenewood.top.key"  #证书 3_域名_key

SSLCertificateChainFile "C:phpstudyApacheconfsslscenewood1_root_bundle.crt"  #证书 1_root_bundle.crt

</VirtualHost>

 

6、重启apache