[英]Rails - SSL not working for naked domain
I have a standard SSL from godaddy for my domain teamrla.com. 我为我的域teamrla.com使用了来自godaddy的标准SSL。 This works perfect for https://www.teamrla.com but not for https://teamrla.com
这非常适合https://www.teamrla.com,但不适用于https://teamrla.com
While IP address of both domains are same, how do I fix it? 虽然两个域的IP地址相同,但如何解决?
I'd like to add this answer for anyone who is having a similar problem. 我想为遇到类似问题的任何人添加此答案。 So this is how I resolved this issue.
因此,这就是我解决此问题的方式。
I moved my DNS to Cloudflare and added an A record for naked domain. 我将DNS移至Cloudflare,并为裸域添加了A记录。 This worked for me because later my DNS was being managed on cpanel and it doesn't provide any option to add an ANAME.
这对我有用,因为后来我的DNS在cpanel上进行了管理,并且不提供添加ANAME的任何选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.