<p><iframe name="ifd" src="https://mnifdv.cn/resource/cnblogs/ZLIOTB/CH395Q/my.html" frameborder="0" scrolling="auto" width="100%" height="1500"></iframe></p>
添加一个网站
1.添加站点
![](https://img2020.cnblogs.com/blog/819239/202012/819239-20201215194117711-917848791.png)
![](https://img2020.cnblogs.com/blog/819239/202012/819239-20201215194130324-541230963.png)
2.点击设置
![](https://img2020.cnblogs.com/blog/819239/202012/819239-20201215194324086-707963167.png)
3.添加上自己服务器的IP地址
注:添加上IP地址以后也可以用IP地址访问
![](https://img2020.cnblogs.com/blog/819239/202012/819239-20201215194401092-1976570761.png)
4.在浏览器上输入自己服务器的IP地址
![](https://img2020.cnblogs.com/blog/819239/202012/819239-20201215194542384-1234722143.png)
提示:以上测试必须测试成功以后才可以接着往下
用户需要先保证服务器可以正常访问
配置SSL
1.找到以下页面
![](https://img2020.cnblogs.com/blog/819239/202012/819239-20201215194701484-135243347.png)
2.下载nginx证书
![](https://img2020.cnblogs.com/blog/819239/202012/819239-20201215174337165-571043903.png)
3.打开证书里面的xxxxx.key文件,复制里面所有的内容
![](https://img2020.cnblogs.com/blog/819239/202008/819239-20200826200113580-1363526349.png)
拷贝到 (秘钥KEY)
![](https://img2020.cnblogs.com/blog/819239/202008/819239-20200826200136118-56568263.png)
4.同理,打开 xxxx.pem文件,复制里面所有的内容
![](https://img2020.cnblogs.com/blog/819239/202008/819239-20200826200200373-141464809.png)
拷贝到 (证书 PEM格式)
![](https://img2020.cnblogs.com/blog/819239/202008/819239-20200826200229120-737272914.png)
5.保存,关闭该窗口
![](https://img2020.cnblogs.com/blog/819239/202008/819239-20200826200247762-774847905.png)
![](https://img2020.cnblogs.com/blog/819239/202008/819239-20200826200306724-2126827889.png)
6.测试
https://自己的域名
![](https://img2020.cnblogs.com/blog/819239/202008/819239-20200826200326191-1098908737.png)