阿里ssl免费证书 + nginx 实现 https

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_35167373/article/details/82774900

https://www.aliyun.com/product/cas?utm_content=se_1513563 阿里购买地址 选择免费版

购买之后补齐信息

点击下载 会有配置nginx 的详细说明

访问不到的原因:

     1、443端口被其它进程占用

     2、防火墙端口未开启

http自动转https 配置

    server {
	     listen  80 default_server;
		 listen  [::]:80 default_server;
		 server_name xxx.com;
		 return 302 https://$server_name$request_uri;
	}

猜你喜欢

转载自blog.csdn.net/qq_35167373/article/details/82774900