当前位置:首页 > Web开发 > 正文

Github 绑定域名添加https的要领 2019年9月更新

2024-03-31 Web开发

官方教程
https://help.github.com/en/articles/using-a-custom-domain-with-github-pages
打开 https://github.com/
打开 https://github.com/waimao8/waimao8.github.io/settings
绑定域名:163168.xyz

打开你要绑定域名的项目,进入设置页面。并在 Github Pages - Custom domain 这一栏填上你的网址
163168.xyz

在source 目录添加一个新文件CNAME,,不带任何后缀,这就是全称,里面写的是你的域名 163168.xyz

技术图片

免费https域名解析
https://dash.cloudflare.com/
从域名处事商ns到下面两个地点
candy.ns.cloudflare.com
earl.ns.cloudflare.com
电脑运行cmd ping waimao8.github.io

盘问ip位
185.199.108.153
之前ping的是185.199.110.153

从cloudflare解析域名 163168.xyz
185.199.110.153
185.199.111.153

等30分钟摆布生效
点击 https://163168.xyz/ 生效就可以访谒了

Github 绑定域名添加https的要领 2019年9月更新

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/30257.html