阿里云 ngxin 配置ssl证书
refer http://siwei.me/blog/posts/nginx-nginx-ssl-443
申请了阿里云ssl证书后,下载nginx的文件,scp到服务器,然后修改nginx配置,重新启动,就可以访问https:www.linlin.fun
server {
listen 443; # 或者 这里 listen 443 ssl, 就不需要下面的ssl on 了。
server_name www.linlin.fun;
ssl on;
root html;
index index.html index.htm;
ssl_certificate cert/214011323330952.pem; // 你上传到服务器的ssl证书的路径
ssl_certificate_key cert/214011323330952.key; // 你上传到服务器的ssl证书的路径
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
}