App & Domain name

Hi, I’m currently on Heroku and I can’t disable default domain name in an app. It is possible to disable defaut domain name on a DigitalOcean app and put my custom 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.

Site Moderator
Site Moderator badge
January 21, 2023

Hi @lukkyz,

In a way, yes. As Heroku at this time, you can’t disable the default domain name in your app however you can create a rule to redirect all requests to a domain specified by you. By default, your app will be given a sub-domain on You can also register a custom domain.

More about that here:

Kamal Nasser
DigitalOcean Employee
DigitalOcean Employee badge
January 20, 2023

Hi @Lukkyz,

You can add a custom domain to an app, see: How to Manage Domains in App Platform.

It is currently not possible to disable the default assigned hostname however you can add a check in your app code to redirect requests to your custom domain.

Try DigitalOcean for free

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

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

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

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
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