colmtuite
colmtuite

Reputation: 4491

Pointing to subdomains with Heroku

I want both www.domain.ie and domain.ie to point to domain.herokuapp.com

I want secure.domain.ie to point to a third party booking engine.

I've run the following command:

heroku domains:add www.tankardstown.ie

Here is what my DNS setup looks like

enter image description here

The www.domain.ie and domain.ie redirects are working fine. The problem is with the secure.domain.ie. Currently, I'm getting this error:

enter image description here

Upvotes: 1

Views: 286

Answers (2)

rks
rks

Reputation: 11

Found this issue whilst looking for something else, but thought I'd better answer this question for other weary travellers...

Looks this issue was because the domain was not added correctly to Heroku. The OP only added 'www.' but should have added a wildcard domain or 'secure.' as a subdomain.

Actual Solution:

OP should have run:

heroku domains:add *.tankardstown.ie

Heroku has more information here:

https://devcenter.heroku.com/articles/custom-domains#add-a-wildcard-domain

Upvotes: 0

kch
kch

Reputation: 79552

Seems to be ok:

$ dig +noall +answer secure.tankardstown.ie
secure.tankardstown.ie. 86395   IN  A   82.195.138.28

probably just a DNS propagation delay?

Upvotes: 1

Related Questions