Add SSL to Heroku app and godaddy - Rails

◇◆丶佛笑我妖孽 提交于 2019-12-23 09:22:32

问题


I'm trying to setup SSL certs with heroku and godaddy. I've successfully created a cert with LetsEncrypt, and have received this message

Your certificate has been added successfully.  Update your application's DNS settings as follows
Domain                   Record Type  DNS Target
───────────────────────  ───────────  ─────────────────────────────────────
secure.lockdownjobs.com  CNAME        secure.lockdownjobs.com.herokudns.com
www.lockdownjobs.com     CNAME        www.lockdownjobs.com.herokudns.com

The part I'm struggling with is DNS Target how in godaddy do I point the domain at the DNS target?


回答1:


Just add the CNAME in Godaddy. Go to your domain, click on DNS File settings and add a new CNAME:

CNAME
www
Target
secure.lockdownjobs.com.herokudns.com

I recommend you read about how to add SSL certificate to Heroku: https://devcenter.heroku.com/articles/ssl-endpoint#setting-up-ssl-on-heroku

And also the much easier way of doing it (Let Heroku do it): https://devcenter.heroku.com/articles/automated-certificate-management



来源:https://stackoverflow.com/questions/43301203/add-ssl-to-heroku-app-and-godaddy-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!