I have a domain and I updated its nameservers to point digitalocean ns. I add this domain in app platform and it is working fine. What I want is I want to redirect www requests to non-www. For this I’ve created a CNAME record with www to point out my root domain. But when I go to it gave me a cloudflare error like " Error 1001 DNS resolution error "

What is wrong ?

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

We understand you are wanting to point your subdomains to your apex domain in app platform. Unfortunatetly this isn’t possible in app platform. All domains you wish to point to your app would need to be CNAMEd to to the default URL of the app. Even your apex domain in app platform does this. If you don’t want to add a wildcard then you would need to manually add each subdomain as a domain to your app. Using our DNS services you don’t need to manually create CNAME records when you do this as they would automatically be added by app platform.

This is required due to the way SSL’s are configured in app platform. For those to be issued for subdomains they each need to be CNAMED to the default URL and added to the app’s domains under its settings.

Let us know if you have any questions.

Answer from support ticket.

Did you find a solution? I’m facing the same problem.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.