Set up gitlab pages via cloudflare and porkbun

What is the name of the domain?

samokosikcom

What is the error number?

None

What is the error message?

None

What is the issue you’re encountering

cannot access my website

What steps have you taken to resolve the issue?

Hello,
I am trying to connect my website which is hosted at gitlab pages to my domain.
I have this setup:

  1. Domain registered in Porkbun
  2. Nameservers set to jihoon.ns.cloudflare.com and zara.ns.cloudflare.com
  3. Website hosted as an HTML file in gitlab pages.

I want my page to be linked to my domain. Gitlab asked me to do this:
(picture)
What I added to my cloudflare is also on the picture.

But when I try to access my domain, I still get pixie proxy.
Can you please assist me, what’s wrong?

What are the steps to reproduce the issue?

Access samokosik.com

Screenshot of the error

Do you still have DNS records set up at Porkbun?

My DNS records at porkbun are empty. The only thing I have at porkbun are nameservers set to cloudflare.

Ok, out of curiosity, have you tried adding those DNS records to Porkbun?

I had some weird behavior with a Porkbun domain (a CNAME setup here), so I had to switch my authoritative DNS over to Hurricane Electric. Porkbun uses Cloudflare DNS, which seems to interfere with some hostname configurations.

originally yes,
I put them there but then I removed it and used ony cloudflare.

What is the name of the domain?

samokosik.com

What is the issue you’re encountering

Cloudflare does not respect my settings and redirects to a different site

What steps have you taken to resolve the issue?

Hello,
so I have set my domain www.samokosik.com to redirect to samokosik.com. However, it ends at some random gitlab website. Is there any way I can make cloudflare respect my settings and redirect correctly?
Thanks

What feature, service or problem is this related to?

DNS records

What are the steps to reproduce the issue?

Visit my domain with www

Screenshot of the error

Please don’t start multiple topics about the same ongoing issue. It’s not going to get your issue resolved any faster and wastes everyone’s time: your’s and ours.

I don’t know what “random gitlab site” you’re seeing, but, from my end, https://samokosik.com/, https://www.samokosik.com/, and https://samokosik.gitlab.io all display the page shown below.

But there’s no real redirection though: www.samokosik.com is merely CNAME’s to samokosik.com. Follow this guide to setup an actual Cloudflare redirection rule: Redirecting www to domain apex · Cloudflare Pages docs

If you’ve setup the redirection already and it’s still not working, please share your rule with is (screenshot) so we can take a look and assist you.

UPDATE:

I just checked again, and samokosik.gitlab.io is now behind a Gitlab login screen, but the other two still show the above page which seem to be the HTML file from this public Gitlab repo.)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.