捣鼓了好久,几度接近放弃,哎。
# 我的配置
wamp绝对地址:D:\wamp64
wamp版本:3.2.0
演示域名:akashi.top
# 开始
wamp安装完毕
打开 D:\wamp64\bin\apache\apache2.4.41\conf,将 解压出的
Apache
的证书复制到该文件夹内。打开该文件夹内的
httpd.conf
文件找到Include conf/extra/httpd-ssl.conf
LoadModule ssl_module modules/mod_ssl.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
这三项,取消注释(
#
)打开 D:\wamp64\bin\apache\apache2.4.41\conf\extra\httpd-ssl.conf,修改以下几项
DocumentRoot "${SRVROOT}/htdocs"
改成DocumentRoot "D:/wamp64/www"
ServerName
顺带也改一下ServerAdmin
改不改应该问题不大ErrorLog "${SRVROOT}/logs/error.log"
改成ErrorLog "D:/wamp64/bin/apache/apache2.4.41/logs/error.log"
TransferLog "${SRVROOT}/logs/access.log"``TransferLog
改成"D:/wamp64/bin/apache/apache2.4.41/logs/access.log"
SSLCertificateKeyFile
这行改成SSLCertificateKeyFile "D:/wamp64/bin/apache/apache2.4.41/conf/3_akashi.top.key"
#SSLCertificateChainFile "${SRVROOT}/conf/server-ca.crt"
改成SSLCertificateChainFile "D:/wamp64/bin/apache/apache2.4.41/conf/1_root_bundle.crt"
重启wamp
测试
打开
https://127.0.0.1:443
SSLEngine on 一般都默认的,off 的话记得开一下