使用 Namecheap 添加自定义域时,Gitlab 页面 401 错误

问题描述

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

1

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

2

我的设置如下。

对于 DNS 站点,我遵循了以下解释:401 error when adding custom domain to gitlab pages 以这些设置结束:

3

在 GitLab 网站上成功验证了域

4

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

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

对可能导致错误的原因有任何想法吗?

解决方法

我也在 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

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...