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

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

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.

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.

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.

👋 @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.

Why can’t I delete the starter domain? It creates a duplicate, spoils the indexing of the site. For this reason, a 301 redirect is needed, can it be done from the starter to the main domain?