阿里免费证书https服务器配置
阿里服务器开启443端口
https://blog.csdn.net/inite/article/details/73658214
点下载证书:选择Apache 下载有四个文件,四个文件放置在 Apache根目录下 如:D:\Apache\Apache24\cert 下 ,然后配置D:\Apache\Apache24\conf\httpd.conf 文件:
1):在httpd.conf文件中去掉 Include conf/extra/httpd-ssl.conf 前面的注释 #
2):在httpd.conf文件中去掉 LoadModule ssl_module modules/mod_ssl.so 前面的注释#
3):在https.conf文件中去掉 LoadModule socache_shmcb_module modules/mod_socache_shmcb.so 前面的#
在httpd-ssl.conf 删除原来的内容 ,写上下面这段
Listen 443
<VirtualHost *:443>
DocumentRoot "C:\wamp\www\yingsiProject"
ServerName api.fsbohan.com
ServerAlias api2.fsbohan.com
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM
#证书路径
SSLCertificateFile "C:/wamp/bin/apache/apache2.2.22/cert/public.pem"
SSLCertificateKeyFile "C:/wamp/bin/apache/apache2.2.22/cert/214582859040161.key"
SSLCertificateChainFile "C:/wamp/bin/apache/apache2.2.22/cert/chain.pem"
<Directory "C:\wamp\www\yingsiProject">
Options None
AllowOverride None
Order allow,deny
Allow from all
Satisfy Any
</Directory>
</VirtualHost>
重启apache