Beginners help with Cloudflare:

What is the issue you’re encountering

I can’t access my subdomains. I have a domain from another company. I have created a A record with the IP, a CNAME with subdomain and a CNAME with www but it won’t access. I have earlier used DuckDNS and have a SWAG reverse proxy and it worked briefly after changing CF name servers, but I can’t get it to work no matter what I try.

You have “too many redirects”…

Check your SSL/TLS setting is set to “Full (strict)” in your dashboard here…
https://dash.cloudflare.com/?to=/:account/:zone/ssl-tls

1 Like

Thanks I think it’s working. Can I remove my domain name from the thread?

1 Like

If your account is not able to edit your original post, you can flag the post for Something Else and indicate that you would like your domain name to be removed from the post. You may need to select the three dots menu in the post to view the flag option.

Thanks, but still not sure if its working.
I can access my subdomains if im on wifi at home but still using subdomain.domain.xx.
If im on mobile it wont connect.
How do I get it to work?

Which subdomains?

You don’t have a DNS record for your apex domain and www is giving error 526 which means the SSL certificate on your origin is invalid (expired, not for the correct hostname or self signed, etc).

1 Like

Thanks for the reply.
Can you check again if it’s working now.
I can access it from cellphone, but I don’t how long it will last.
In regards to the SSL I have setup a SWAG docker container with Nginx reverse proxy.
This is my current DNS in CF:

I have not directed www to ddns.domain name, is that the error and is there anything else I should change?

1 Like

You don’t have a DNS record for the domain (@) which is what www points to so, as expected, www returns a Cloudflare 1016 error.

Hmm, not sure I completely understand
So I should have 2 x A records like this?

And should the www point to ddns.domainname or just domainname?

I can’t know what you are doing with those records and what they are pointing at, so that’s up to you to work out.

1 Like

The A record is a Dynamic DNS I have on my pfsense router that refreshes the IP if it change. All the subdomains points to the ddns.domainname except the www.
So:

  1. Should I create an extra A record with my domainname pointing to my public IP address or not?
  2. Should I have the www point to ddns.domainname like the other subdomains or only to domainname?

If you want them all to point to the same server, then @ and www can CNAME to ddns.

Thanks have added @ and www as CNAME.

  1. On @ it says
    CNAME records normally can not be on the zone apex. We use CNAME flattening to make it possible.
    Don’t know if that’s okay?

  2. If I want to use CF as reverse proxy instead of Nginx, is this the right way to do it or what is best practice?
    Using Cloudflare as a reverse proxy - Docs - PostHog

A post was split to a new topic: How do I create A records?