一、修改apache目录下的httpd.conf配置文件
1、#LoadModule ssl_module modules/mod_ssl.so删除行首的配置语句注释符号“#”
2、增加一条引用语句 Include conf/vhostssl.conf
Listen 443
<VirtualHost *:443>
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile "C:\phpStudy\Apache\conf\2_hnzkkj.cn.crt"
SSLCertificateKeyFile "C:\phpStudy\Apache\conf\3_hnzkkj.cn.key"
SSLCertificateChainFile "C:\phpStudy\Apache\conf\1_root_bundle.crt"
DocumentRoot "C:\phpStudy\WWW"
<Directory />
Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
二、重启服务器就可以了