如何给网站配置ssl


给网站配置ssl的方法:

1.下载证书,并上传到服务器。

2.打开网站目录,找到usr/local/Nginx/conf下的"xxx.conf"这个文件。(xxx是你的域名前缀)

3.打开文件并添加以下内容:

listen 443 ssl;

ssl_certificate /usr/local/nginx/cert/213979626930477.pem;ssl_certificate_key /usr/local/nginx/cert/213979626930477.key;

4.重启nginx,使ssl配置生效即可。


上一篇:云服务器如何维护

下一篇:phpstudy如何搭建ssl网站


Copyright © 2002-2019 测速网 https://www.inhv.cn/ 皖ICP备2023010105号 城市 地区 街道
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!
热门搜索