icimence / icimence.github.io

icimence's Tech blog
https://icimence.github.io/
2 stars 0 forks source link

服务器Nginx配置实现Https域名 | Icimence's Tech Blog #22

Open icimence opened 4 years ago

icimence commented 4 years ago

https://icimence.cn/2020/05/21/%E6%9C%8D%E5%8A%A1%E5%99%A8Nginx%E9%85%8D%E7%BD%AE%E5%AE%9E%E7%8E%B0%E5%9F%9F%E5%90%8D%E8%AE%BF%E9%97%AE/#%E5%B0%9D%E8%AF%95%E4%BB%8E%E6%B5%8F%E8%A7%88%E5%99%A8%E8%BF%9B%E8%A1%8C%E8%AE%BF%E9%97%AE

配置443端口实现https访问在http{}中加入如下代码 server{ listen 443 ssl; server_name .nandodu.cn; charset utf-8; ssl_certificate /etc/nginx/ssl/域名的cr