如何配置 DNS 指向 github 项目页面?
How to configure DNS to point to github project pages?
我有一个 name.com 的域名,我项目的 github 个页面是
my_username.github.io/project's name/
我从他们的文档中读到了这个
CNAME does not resolve to URLs - i.e http://name.com/support - because it cannot handle special characters like : and /
所以我被困在这里了。因为没看到多少用A记录,不知道能不能和github页一起用。谢谢
DNS domain configuration is normally reserved for User & Organization pages, not for Project Pages.
对于项目页面,您需要:
- 创建
CNAME
到 my_username.github.io.
的入口点(注意最后的“.”!)。
- 将
CNAME
文件添加到 gh-pages
分支中的项目根目录(内容为 name.com
)。
参见:
- "Custom domain for GitHub project pages",
- "Redirecting Github project pages to a custom domain" by Zara Rahman.
我有一个 name.com 的域名,我项目的 github 个页面是
my_username.github.io/project's name/
我从他们的文档中读到了这个
CNAME does not resolve to URLs - i.e http://name.com/support - because it cannot handle special characters like : and /
所以我被困在这里了。因为没看到多少用A记录,不知道能不能和github页一起用。谢谢
DNS domain configuration is normally reserved for User & Organization pages, not for Project Pages.
对于项目页面,您需要:
- 创建
CNAME
到my_username.github.io.
的入口点(注意最后的“.”!)。 - 将
CNAME
文件添加到gh-pages
分支中的项目根目录(内容为name.com
)。
参见:
- "Custom domain for GitHub project pages",
- "Redirecting Github project pages to a custom domain" by Zara Rahman.