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!
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.
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.