我可以将gitlab页面连接到我的namecheap域
在将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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这里回答我自己的问题,因为我与Namecheap的支持取得了联系。 Gitlab提供的示例DNS条目不在Namecheap上工作(截至2022年5月)。所需的DNS条目是
(Alias Record)
主机
:www
,target
:< gitlab_user_or_ordanisation_name> .gitlab.io。代码>
(txt记录)
主机
:_gitlab-pages-verification-code.www
,target> target
:gitlab-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
, notwww.<yourapp>.<tld>
, and the verification host is_gitlab-pages-verification-code.www
, not_gitlab-pages-verification-code.<yourdomain>.<tld>
.No CNAME record is required, in fact it conflicts with the ALIAS record anyway.