How to set up ssl on heroku app with a GoDaddy domain

时间:2019-01-09 22:26:55

标签: ssl heroku dns

I have a herokuapp running with a GoDaddy custom domain, and I am trying to add an ssl. I followed the Heroku tutorial by upgrading to a hobby dyno and clicking on "configure ssl." I then chose the automatic option, and it told me to replace the DNS www.example.com with a long string that Heroku provided, but I am not sure where to do this. GoDaddy does not allow me to change the address to the string because it does not begin with www. Has anybody set up an ssl for a herokuapp with a GoDaddy custom domain who has experience with this?

1 个答案:

答案 0 :(得分:0)

我前一段时间做过

我通过将测功机升级为付费并使用其SSL来在Heroku上设置SSL。困难的部分只是将GoDaddy和Heroku连接在一起。

您需要做的就是去Heroku并添加一个自定义域并复制DNS。

转到GoDaddy中的DNS设置并创建新记录。

类型= CNAME

NAME = WWW

指向= [DNS FROM HEROKU]

那应该是全部。

您应该具有以下内容:

sample