Ubuntu下Nginx配置Https
来源:互联网 发布:js控制浏览器最小宽度 编辑:程序博客网 时间:2024/06/07 15:45
1.安装 Nginx
apt-get install -y nginx
2.添加package repository
add-apt-repository ppa:certbot/certbotapt-get update3.安装Certbot的Nginx package
apt-get install -y python-certbot-nginx4.配置站点
vi /etc/nginx/sites-available/defaultserver{ listen 80; server_name your-domian.com; index index.html; root /data/www;}5.重新加载Nginx配置文件
service nginx reload6.签发SSL证书
certbot --nginx -d your-domian.com -d www.your-domain.com
看到Congratulations!时,再次访问站点就会看到绿色的https
7.自动更新
#可使用如下命令检测是否已生产自动更新脚本,若无则手动将certboot renew添加到cron中certbot renew --dry-run
阅读全文
0 0
- Ubuntu下配置Nginx HTTPS
- Ubuntu下Nginx配置Https
- Ubuntu 16.04下配置Nginx HTTPS
- Ubuntu nginx 配置https
- ubuntu nginx 配置 https
- nginx下配置https
- ubuntu nginx配置https服务器
- Nginx下的https配置
- windwos下Nginx配置https
- nginx 下https配置实现
- Centos7下nginx配置https
- Ubuntu下配置nginx
- ubuntu利用nginx配置https服务器
- https搭建:ubuntu nginx配置 SSL证书
- https搭建:ubuntu nginx配置 SSL证书
- Ubuntu下配置Apache HTTPS
- Ubuntu下配置Apache HTTPS
- ubuntu下安装nginx,支持https
- [算法分析与设计] leetcode 每周一题: Find Right Interval
- Linux gensub函数用法
- 数据仓库与联机分析处理笔记
- hdu_2004 成绩转换
- 因子分析(Factor Analysis Model)算法推导
- Ubuntu下Nginx配置Https
- ActiveMQ消息持久化
- C++运算符
- 使用rvest包抓取新浪财经A股交易数据
- 你所不知道的Chrome调试技巧(上)
- 【笔记】查看 git项目的地址及子模块
- 牛客练习赛6 B,D 题解
- 【IPFS + 区块链 系列】 入门篇
- 数组长度为0与NULL