github 自定义域不起作用
我为我的博客创建了一个cname,并将cname文件上传到我的master分支。但是它不起作用。它显示页面始终不存在。 我的 dns 停在 cloudflare 中。
I have made a cname for my blog and uploaded a cname file to my master branch.But It doesn't work.It display page does not exist all the time.
My dns is parked in cloudflare.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要将
CNAME
文件提交到gh-pages
分支的根目录,自定义域才能正常工作。You need to commit the
CNAME
file to the root of yourgh-pages
branch for custom domains to work.您必须首先创建 gh-pages 分支。最简单的方法是通过自动生成器。可以在此处找到入门指南:https://help.github .com/articles/creating-pages-with-the-automatic-generator
You must first create the gh-pages Branch. The easiest way to do this is via the Automatic Generator. A starter guide can be found here: https://help.github.com/articles/creating-pages-with-the-automatic-generator