简体   繁体   English

我无法将 Gitlab Pages 连接到我的 Namecheap 域

[英]I can't connect Gitlab Pages to my Namecheap domain

I've had multiple problems connecting Gitlab pages to my domain registered at Namecheap.我在将 Gitlab 页面连接到我在 Namecheap 注册的域时遇到了多个问题。 I've tried multiple DNS configurations and none of them seem to work.我尝试了多种 DNS 配置,但它们似乎都不起作用。 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".我在验证步骤中得到“无法验证域所有权”,即使我通过了(不知何故),我也得到“获取 TLS 证书时出现问题”。 I've followed the instructions given to me by GitLab (below), what am I doing wrong?我已经按照 GitLab 给我的说明(如下),我做错了什么?

Gitlab指令截图

Answering my own question here, because I got in touch with Namecheap support.在这里回答我自己的问题,因为我与 Namecheap 支持取得了联系。 The example DNS entries provided by GitLab don't work on Namecheap (as of May 2022). GitLab 提供的示例 DNS 条目不适用于 Namecheap(截至 2022 年 5 月)。 The required DNS entries are所需的 DNS 条目是

(Alias record) Host : www , Target : <gitlab_user_or_organisation_name>.gitlab.io. (别名记录) HostwwwTarget<gitlab_user_or_organisation_name>.gitlab.io.

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

Note the differences to the Gitlab instructions.请注意与 Gitlab 说明的差异。 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> .别名主机是www ,而不是www.<yourapp>.<tld> ,验证主机是_gitlab-pages-verification-code.www ,而不是_gitlab-pages-verification-code.<yourdomain>.<tld>

Namecheap DNS 配置截图

No CNAME record is required, in fact it conflicts with the ALIAS record anyway.不需要 CNAME 记录,实际上它无论如何都与 ALIAS 记录冲突。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM