码迷,mamicode.com
首页 > Web开发 > 详细

Github 绑定域名添加https的方法 2019年9月更新

时间:2020-02-09 11:59:00      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:生效   format   官方   href   tar   main   访问   and   form   

官方教程
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
技术图片大专栏  Github 绑定域名添加https的方法 2019年9月更新img.cn/aHR0cHM6Ly9pLmxvbGkubmV0LzIwMTkvMDkvMTQveVc1YWRzSE4zUVVEeHdxLnBuZw?x-oss-process=image/format,png" alt="2.png"/>

免费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月更新

标签:生效   format   官方   href   tar   main   访问   and   form   

原文地址:https://www.cnblogs.com/lijianming180/p/12286273.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!