I have typically used Cloudflare with Gitlab Pages and custom domains without any problems. However, in this case I cannot use Cloudflare as this is a side project for a friend, e.g. I cannot make whatever change I want.
The current situation is as follows
- GL CI pushed the content live
- CNAME entry has been set, ie. when entering the www.eastendstudios.de it shows a GL 401 with “You don’t have permission to access the resource.”
- Visibility setting was set to
- Let’s Encrypt is set to Active
However, the domain cannot be verified.
As per dnsrecords.io the TXT records has been set. I have actually tried various entries with the same verification code but it’s not working.
I’d appreciate any lead or advise. Thank you.
You probably want your entry to read
_gitlab-pages-verification-code.www.eastendstudios.de 150 IN TXT “gitlab-pages-verification-code=d4c84966389f4d2b50cb6340fdef04e”
so that it can be verified. May still get an issue with 401 after it is verified though.
Yep, the additional
www subdomain likely is the culprit here.
The corresponding CNAME is set in DNS.
;; ANSWER SECTION:
www.eastendstudios.de. 149 IN CNAME blendedio.gitlab.io.
blendedio.gitlab.io. 299 IN A 22.214.171.124
Depending on the DNS interface, one might leave out the domain suffix and write the following into the zone file:
_gitlab-pages-verification-code.www TXT “gitlab-pages-verification-code=d4c84966389f4d2b50cb6340fdef04e”
or, with key values and web forms in mind:
- Add a new TXT record
May also want to try a different DNS provider, Gitlab seems to have good integration with Cloudflare
I have a similar problem with a gitlab page deployed with publii. A similar problem is described here. I configured the web site as described here and the answer by DNS to dig request is correct.
However, I can browse example.com while I get 401 with www.example.com.
First of all, it’d be very nice if you wouldn’t necro-post.
Secondly, create a new thread (tag me if you wish) and provide more information
“example.com doesn’t work” - nobody can really assist you with such useless information!
I’m sorry for this, I opened a new thread here.