4

I’ve added my custom domain to gitlab pages with no issues, now I want to also add the www. subdomain but it keeps failing to verify. If you try to load the url gives 401.

The txt record is there for the www subdomain is there and I’ve waited a while for it to propagate. Any ideas?

vale
  • 1,376
  • 11
  • 25

1 Answers1

0

Check the "Visibility, project features, permissions" in GitLab (Project > Settings > General).

Look for the "Pages" section: "With GitLab Pages you can host your static websites on GitLab"

See link here to GitLab forum: https://forum.gitlab.com/t/401-error-when-adding-custom-domain-to-gitlab-pages/30517/2

soulston
  • 29
  • 2
  • That's not it. It is set to everyone – vale Feb 03 '20 at 15:03
  • @Vale this was a suggestion as _one_ of the things that you have to set. I'm not suggesting it will solve your exact issue. – soulston Aug 14 '20 at 11:33
  • I know, but that's the reason I did not accept it. (I'm not the one who downvoted it btw) – vale Aug 15 '20 at 17:11
  • 1
    Understood @vale but responses to questions are there to help others that may be facing this configuration issue. I appreciate that you may not have been the one to downvote it. Did you solve the issue in the end? – soulston Aug 20 '20 at 14:57
  • It solved on its own for a month (I did not change anything), but later went back to 401 so I switched the site off Gitlab for the moment... – vale Aug 20 '20 at 15:21
  • I had a similar issue, I resolved it by removing the domain and repo and rebuilding it, it seems people may have intermittent issues? – soulston Aug 21 '20 at 07:29