Add a subdomain to a Heroku App - heroku

I have create a Heroku App which is called database-service which has the following URL assigned:
https://database-service.herokuapp.com/
Is it posible to add a subdomain called test so I can access the exact same app?
E.g.
https://test.database-service.herokuapp.com/

Related

Cannot access website with custom domain name

I have deployed my application on Heroku and I have issues setting my custom domain name.
Here are my domains on Heroku :
Here are my targets set on OVH :
Still, I cannot access my website and the browser states that the website is not accessible with this error appended : DNS_PROBE_FINISHED_NXDOMAIN
There is a well written article on their site that outlines the steps:
Custom Domain Names for Apps
Also, an important part is that your account is verified:
You can add custom domains to any Heroku app . . . you must verify your Heroku account to add domains to apps.
Account Verification

Firebase hosting root is setup but subdomain also showing firebase 404 even though only root is pointed

I want to hook the root of my goDaddy domain to firebase. omarhabash.com. When i go there, I see it correctly but for some reason www.omarhabash.com shows a firebase 404. I don't want that cause www should be pointed to heroku.
The heroku site is hooked via cname but does not show it - instead i see firebase which should only be set via a record #
You have to add to the www subdomain the A records with the same Firebase IP addresses, and then add the new subdomain in the Firebase Hosting dashboard. If you already verified the main domain, this should be ready more quickly.

How to add wildcard to Heroku app without custom domain?

I tried to add wildcard domain to my existing app hosting as mysite.herokuapp.com - without a custom domain. The point is it's my test app and application itself allows end users create apps that would be visible as subdomains.
So I configured custom domain and wildcard for main prod app, now I want it to be done for my dev (test) app - so here I need only wildcard but not custom domain. If I try to do it I have "Can't add an additional Heroku domain." What to do to fix it? Is it even possible? Thanks!
UPDATE I have the official answer from Heroku support. It's impossible, I can only add wildcard domain to my custom domain.

Google Domains Not Pointing to Correct Heroku App

I am trying to point my Google Domains domain name to Heroku, but am having a hard time. I previously had the domain forwarded to point to another website, but I have now followed these instructions to point it to my Heroku app.
The domain in question is www.lizbayardelle.com. The Heroku app I want it to is https://liz-bayardelle.herokuapp.com/. If I type heroku open in Terminal this is what comes up. However, if you go to the domain and the heroku app, the domain still shows the other website (to which it was initially forwarded), not the Heroku app.
Here are my Google Domains settings:
If you want it to point to liz-bayardelle.herokuapp.com, use that.
You've used www.liz-bayardelle.herokuapp.com. Visiting that URL displays Heroku's "no such app" page.
It turned out that the domain name was still "claimed" by the other Heroku app, so I had to log in to the one which had been forwarded on the Heroku console and delete the domain name. After I did this it could be added with heroku domains:add www.lizbayardelle.com and heroku domains:add lizbayardelle.com.

custom domain changing url back to heroku domain

I just set up a Ghost blog on heroku. under settings I get https://myghostblog.herokuapp.com/ as the domain. I wanted to connect a custom sub-domain, thus I added the custom sub-domain www.blog.customdomain.com in heroku and added the heroku given DNS target to CNAME of my google domain. yet When i visit www.blog.customdomain.com the browser changes the address in the browser to the heroku app domain https://myghostblog.herokuapp.com/
My HEROKU_URL was set to https://myghostblog.herokuapp.com/ changing it to http://blog.customdomain.com, and then clearing cache or trying in private tab did the trick.

Resources