Question

How To Create A WWW CNAME IN APP PLATFORM

Hi,

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 www.example.com it gave me a cloudflare error like " Error 1001 DNS resolution error "

What is wrong ?


Submit an answer


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.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.

This promotional offer applies to new account only.

© 2023 DigitalOcean, LLC.