如何将我的 Google 域链接到自定义 HTML 网页

Sha*_*rp_ 6 html dns website-hosting google-domains

我和我的团队最近购买了一个 Google 域,但是在尝试连接到它的网站时,它只为我们提供了网站建设者的选择。我们有一个 GitHub 存储库,其中包含我们希望它托管的所有文件,但同样,只有网站建设者。我可以让我的 Google Domain 连接到自定义 HTML 页面吗?

小智 6

您可以在 GitHub 上托管您的内容并使用 GitHub Pages 为其提供服务

https://pages.github.com

您可以让您的 Google Domains 域指向它。

https://help.github.com/articles/using-a-custom-domain-with-github-pages/

您需要将一个 CNAME 文件添加到您的存储库中,其中包含您的域 URL。手动添加或按照此处的说明进行操作。

https://help.github.com/articles/adding-or-removing-a-custom-domain-for-your-github-pages-site/

您需要在 Google Domains 控制面板中添加一些 A 记录,其中包含 GitHub 服务器的 IP 地址(当前为 192.30.252.153 和 192.30.252.154)。

https://support.google.com/domains/answer/3290350?hl=en