1

让网站运行后,https://*username*.gitlab.io/*project name*/我尝试添加自定义域。域是 fitshapeprogressions.com。但这会导致以下错误:

1

我将页面访问控制设置为“所有人”,为什么会出现权限错误?

2

我设置如下。

对于 DNS 站点,我遵循以下说明:将自定义域添加到 gitlab 页面时出现 401 错误 以这些设置结尾:

3

在 GitLab 网站上,该域已成功验证

4

我看过类似的问题,但提出的解决方案似乎不起作用https://forum.gitlab.com/t/401-unauthorized-error-for-gitlab-page-deployed-with-publii/37180/6

401 使用公共 https://forum.gitlab.com/t/401-error-when-adding-custom-domain-to-gitlab-pages/30517部署的 GitLab 页面出现未经授权的错误,将自定义域添加到 GitLab 页面时出现 401 错误

关于可能导致错误的任何想法?

4

1 回答 1

0

我也在 gitlab 论坛上问过这个问题,并提供了解决方案。

解决方案: txt 记录指向错误的域,必须根据文档进行更改。https://docs.gitlab.com/ee/user/project/pages/custom_domains_ssl_tls_certification/#3-set-up-dns-records-for-pages

解决方案链接: https ://forum.gitlab.com/t/401-error-when-adding-custom-domain-to-gitlab-pages-with-namecheap/50267

于 2021-03-19T10:00:55.070 回答