Report this

What is the reason for this report?

Is it possible to disable starter domain for an application on App Platform?

Posted on December 12, 2020

By default every application on App Platform has starter domain like {app_name}-{some-symbols}.ondigitalocean.app.

Is it possible to disable this domain in case a custom domain is configured?

Having it enabled for websites could potentially affect search engine optimization as content would be mirrored on different domains. For a static website, it’s not possible to have specific robot.txt files for different domains, so there is no way to disallow indexing of the default domain.



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!

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.

Quick update here, App Platform now supports subdomain routing, which also allows you to disable an app’s starter domain. For setup instructions, see How to Manage Domains in App Platform.

👋 @dmytrovasylchenko

We don’t currently support disabling the App Platform domain. You bringup a good point, I’ll bring it up with the team and see what our options are.

It is also annoying in the aspect of services like webcrawlers, global ip range scanners and so on. I’m running a django project as my app and by default django disallows all requests from unknown domains if not specified in the settings. Since I can’t receive the starter app platform domain as a global variable ($DOMAIN_URL switches to the custom domain if set) I’m punished by multiple error report emails per day because there is no way to either disable the starter domain or get it as a variable.

The developer cloud

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

Get started for free

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

*This promotional offer applies to new accounts only.