所以我在heroku上开发了我的RoR网站。我在heroku上使用https,最近我为我的网站购买了一个域名。所以我将www.mydomain.com设置为cname to myapp.herokuapp.com。
但问题是当您浏览www.mydomain.com时会收到浏览器警告 说
You attempted to reach www.mydomain.com, but instead you actually reached a server identifying itself as *.herokuapp.com.
This may be caused by a misconfiguration on the server or by something more serious.
An attacker on your network could be trying to get you to visit a fake (and potentially harmful) version of www.mydomain.com.
You should not proceed, especially if you have never seen this warning before for this site.
我想知道当你浏览https://www.mydomain.com
时我是如何解决这个错误的感谢您的帮助
答案 0 :(得分:1)
如果您想在自己的域中使用SSL,则需要为您的域购买SSL域,然后使用Heroku SSL端点插件(每月20美元)。 https://devcenter.heroku.com/articles/ssl-endpoint