似梦似醒

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

主要参考的这个博客

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>

posted on 2016-07-26 21:41  人生如梦,梦如人生  阅读(4614)  评论(0编辑  收藏  举报