Question

App Platform CNAME redirect error trying to send "www" to root. ERR_SSL_VERSION

I found and followed these answers for getting www.mydomain.com to redirect to mydomain.com

https://www.digitalocean.com/community/questions/how-to-setup-cname-to-redirect-static-app-platform

https://www.digitalocean.com/community/questions/how-to-redirect-www-mydomain-com-to-domain-com-when-using-app-platform

However, when I add the CNAME to DigitalOcean, and try the “www” address, I get this from browser.

This site can’t provide a secure connection www.mydomain.com uses an unsupported protocol. ERR_SSL_VERSION_OR_CIPHER_MISMATCH

Its an angular front end, Domain is handled by DO, everything else works as expected.

Do you have any ideas?

Thank you.


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.

KFSys
Site Moderator
Site Moderator badge
February 13, 2024

Heya @friendlylapiswhale,

One of the benefits of using the DigitalOcean App Platform is its managed SSL/TLS. The platform automatically provisions and renews SSL certificates for the domains you add. If you have linked your domain to the DigitalOcean App Platform successfully, an SSL certificate should be automatically provisioned for your domain.

Here’s a step-by-step guide on how to set up a custom domain and SSL with the DigitalOcean App Platform:

  1. Add a Custom Domain to Your App:

    • Navigate to the DigitalOcean control panel.
    • Go to your app’s dashboard within the App Platform.
    • Under the “Domains” section, click “Add Domain”.
    • Enter your custom domain and click “Add”.
  2. Update DNS Records:

    • Go to your domain registrar (in your case, Namecheap) and update the DNS records to point to the DigitalOcean App Platform. DigitalOcean should provide you with the necessary CNAME or A records.
    • It might take some time for DNS propagation, so be patient.
  3. Automatic SSL Certificate Provisioning:

    • Once the DNS records are correctly set up and propagated, DigitalOcean’s App Platform will automatically provision an SSL certificate for your domain using Let’s Encrypt.
    • After this step, your app should be accessible via https:// followed by your custom domain.

You don’t need to create CSR files or manually handle certificates because DigitalOcean automates this for you.

Hope that this helps!

Try DigitalOcean for free

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

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

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

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

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