
web服务器https访问
手动更新证书
1 | sudo systemctl stop nginx # 停止nginx服务 |
安装Let“s Encrypt证书
使网站可以使用https访问
1.安装Certbot
1 | sudo apt update |
2.获取SSL证书
方式一、自动获取
1 | sudo certbot --nginx # 如果是 Nginx |
方式二、手动获取
1 | sudo certbot certonly --standalone -d twikoo.icsteam.cn |
3.配置web服务器
nginx站点文件会自动添加相关配置文件
1 | location /images/ { |
在目录下新增 autoindex on;开启目录列表(类似文件浏览器)
- 标题: web服务器https访问
- 作者: LinJiefeng
- 创建于 : 2025-07-16 21:00:51
- 更新于 : 2026-01-25 13:13:59
- 链接: https://blog.icsteam.cn/2025/07/16/101_web_https/
- 版权声明: 根据ai进行转化
评论