阿里云SSL证书安装

1、在aliyun上申请免费证书后,下载出  orderid.key  和 orderid.pem 两个文件

2、将上述两个证书文件上传至服务器nginx目录下,修改为如下vhost主机配置:(含以下内容,但不仅仅是,还要有原来的配置信息)

server
{
listen 80;
listen 443 ssl;

listen [::]:80;

ssl on;
ssl_certificate   /usr/local/nginx/conf/vhost/myorderid.pem;
ssl_certificate...<span class="readmore"><a href="https://jiachunkuan.com/post-24.html">阅读全文&rarr;</a></span>

chunkuan 发布于 2016-12-22 07:54