github 自定义域不起作用

发布于 2025-01-06 23:39:19 字数 90 浏览 4 评论 0原文

我为我的博客创建了一个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

神爱温柔 2025-01-13 23:39:19

您需要将 CNAME 文件提交到 gh-pages 分支的根目录,自定义域才能正常工作。

You need to commit the CNAME file to the root of your gh-pages branch for custom domains to work.

百合的盛世恋 2025-01-13 23:39:19

您必须首先创建 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文