Report this

What is the reason for this report?

Problem adding a custom domain to the App Platform

Posted on October 7, 2020

Hello!

So, I wanted to move my static website to the new App Platform.

  • I deployed the site from Git.
  • I disabled Cloudflare from my own account, since it says in the documentation that it won’t work otherwise.
  • Then, I tried to add a custom domain with the CNAME on Namecheap, as it says in the documentation. The CNAME propagation took place quickly.

But the domain didn’t work properly, which I expected. It showed a plain 404 error text and also performed a redirect from www to non-www, which means it still used the .htaccess found on the old server.

Now, I’m wondering: If the site goes automatically through Cloudflare in the App Platform, doesn’t it mean that they are basically my DNS providers, since that’s how Cloudflare works? You swap NS with Cloudflare’s, and then add MX, TXT, CNAME, etc. in Cloudflare.

In that case, how should I add the CNAME to Cloudflare if I can’t use my own account and can’t edit any DNS on the App Platform either?

Am I missing something?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.