1.下载证书,放在/usr/local/nginx/conf/目录下

2.配置https的server里的ssl(nginx.conf本来是注掉的,需要放开)

前端部署项目http转https

3.配置http的server

前端部署项目http转https

4.在/usr/local/nginx/sbin/中重新加载nginx  ./nginx -s reload

相关文章:

  • 2022-12-23
  • 2021-12-03
  • 2021-05-29
  • 2021-12-03
  • 2021-11-23
  • 2022-01-20
  • 2021-12-07
  • 2022-01-10
猜你喜欢
  • 2022-12-23
  • 2021-08-25
  • 2021-09-19
  • 2021-11-26
  • 2021-10-09
  • 2022-12-23
相关资源
相似解决方案