主要参考的这个博客
http://blog.csdn.net/sdq4700/article/details/36173665
配置完以后重启wamp , https不能正常访问
apache.log 报错 ssl server certificate does NOT include an ID which matches the server name
在配置文件中添加了 <VirtualHost www.jjstest.com:443> ...</VirtualHost> 下面一段文字。可以访问了.
<VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "E:/work_tool/wamp/www/jjstest" ServerName www.jjstest.com ErrorLog "logs/jjstest.log" CustomLog "logs/jjstest-access.log" common </VirtualHost> <VirtualHost www.jjstest.com:443> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "E:/work_tool/wamp/www/jjstest" ServerName www.jjstest.com SSLEngine on SSLCertificateFile E:/work_tool/wamp/bin/apache/apache2.4.9/bin/server.crt SSLCertificateKeyFile E:/work_tool/wamp/bin/apache/apache2.4.9/bin/server.key </VirtualHost>
<VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "E:/work_tool/wamp/www/jjstest" ServerName www.jjstest.com ErrorLog "logs/jjstest.log" CustomLog "logs/jjstest-access.log" common</VirtualHost>
<VirtualHost www.jjstest.com:443>ServerAdmin webmaster@dummy-host2.example.comDocumentRoot "E:/work_tool/wamp/www/jjstest"ServerName www.jjstest.com SSLEngine on SSLCertificateFile E:/work_tool/wamp/bin/apache/apache2.4.9/bin/server.crt SSLCertificateKeyFile E:/work_tool/wamp/bin/apache/apache2.4.9/bin/server.key</VirtualHost>