Nginx https 证书自己生成(debian系系统为例)
1.切换到/etc/nginx 目录下执行
1 | sudo openssl req -new -x509 -nodes -out server.crt -keyout server.key |
2.配置站点nginx(/etc/nginx/sites-enabled/test)
1 | upstream php5.6-fpm { |
3.重启nginx服务
1 | sudo systemctl restart nginx |
原文链接: http://www.jiliuke.com/2020/01/10/nginx-ssl/
版权声明: 转载请注明出处.