修改httpd.conf,下面内容原来是注释掉的,去掉注释
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
备份一下conf/extra/httpd-ssl.conf为conf/extra/httpd-ssl.conf.bak
修改conf/extra/httpd-ssl.conf
只保留下面的文字,其他删除
Listen 443
修改conf/vhost.conf增加下面的配置:
<VirtualHost *:443>
DocumentRoot "D:\web_project\xxx"
Servername dev.xxx.com
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn
SSLEngine on
SSLCertificateFile D:\phpStudy\Apache\conf\cert\1841554_dev.xxx.com_public.crt
SSLCertificateKeyFile D:\phpStudy\Apache\conf\cert\1841554_dev.xxx.com.key
</VirtualHost>