我可以将gitlab页面连接到我的namecheap域

发布于 2025-02-03 04:42:01 字数 326 浏览 4 评论 0原文

在将GitLab页面连接到在Namecheap注册的域中,我遇到了多个问题。我已经尝试了多种DNS配置,但它们似乎都没有用。我在验证步骤中“无法验证域名”,即使我超越了(某种程度上),我也会“在获得TLS证书时出现问题”。我遵循Gitlab(下)给我的指示,我在做什么错?

I've had multiple problems connecting Gitlab pages to my domain registered at Namecheap. I've tried multiple DNS configurations and none of them seem to work. I got "Failed to verify domain ownership" at the verification step, and even when I got past that (somehow), I got "something went wrong while obtaining the TLS certificate". I've followed the instructions given to me by GitLab (below), what am I doing wrong?

Screenshot of Gitlab instructions

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

星星的軌跡 2025-02-10 04:42:01

在这里回答我自己的问题,因为我与Namecheap的支持取得了联系。 Gitlab提供的示例DNS条目不在Namecheap上工作(截至2022年5月)。所需的DNS条目是

(Alias Record)主机wwwtarget< gitlab_user_or_ordanisation_name> .gitlab.io。代码>

(txt记录)主机_gitlab-pages-verification-code.wwwtarget> targetgitlab-pages-pages-verification-代码=< your_code>

注意与GitLab指令的区别。别名主机是www,而不是www。,不是_gitlab-pages-verification-code。

无需使用CNAME记录,实际上它与别名记录发生冲突。

Answering my own question here, because I got in touch with Namecheap support. The example DNS entries provided by GitLab don't work on Namecheap (as of May 2022). The required DNS entries are

(Alias record) Host: www, Target: <gitlab_user_or_organisation_name>.gitlab.io.

(TXT Record) Host:_gitlab-pages-verification-code.www, Target:gitlab-pages-verification-code=<your_code>.

Note the differences to the Gitlab instructions. The Alias host is www, not www.<yourapp>.<tld>, and the verification host is _gitlab-pages-verification-code.www, not _gitlab-pages-verification-code.<yourdomain>.<tld>.

Screenshot of Namecheap DNS configuration

No CNAME record is required, in fact it conflicts with the ALIAS record anyway.

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