问题描述
我有一个域名example.com和www.example.com。我使用Heroku和Zerigo的DNS ..现在我有一个转发从根域到www.example.com从我的Hostgator帐户,但这不工作。我更喜欢使用Zerigo进行重定向或使用ALIAS。我发现很多文章谈到ALIAS和ANAMES,但是除了字母A指定的ALIAS之外,我找不到Zerigo的文章。
I have a domain example.com and www.example.com. I'm using Heroku and Zerigo for DNS.. Right now I have a forwarding from the root domain to the www.example.com from my Hostgator account but that's not working. I'd prefer to use Zerigo with the redirecting or by using an ALIAS. A lot of the articles I've found talk about ALIAS and ANAMES but I can't find those on Zerigo unless an ALIAS is specified by the letter A.
有没有人有一个解决方案将裸体域指向他们的www使用Zerigo?
Does anyone have a solution to pointing naked domains to their www using Zerigo??
我已经做到了 -
- 到Zerigo仪表板
- 点击添加片段
- 点击Heroku
- 添加这两个
- 将CNAME更改为我的英雄应用程序名称
- Went to Zerigo dashboard
- Clicked Add Snippet
- Click Heroku
- Add both of those
- Change the CNAME to my heroku app name
看起来像这样它暂时工作。
It seems like this makes it work temporarily only.
推荐答案
Heroku支持甚至没有给我一个很好的答案...
Heroku support didn't even give me a great answer at all...
看起来一个短期的解决方案是将A记录指向174.129.25.170
Looks like one short-term solution would be to point an A-record to 174.129.25.170
如果你去他们免费将裸体域重定向到完整的域,如果你将记录指向该地址。而且,我不是使用Zerigo,而是在我的域名注册商的网站上做到这一点。但是使用Zerigo也应该也可以。
If you go to http://wwwizer.com/naked-domain-redirect they free-of-charge redirect naked domains to full domains if you point the record to that address. Also, instead of using Zerigo I did this on my domain registrar's website. But using Zerigo should work as well.
希望这有助于将来遇到这种麻烦的人。记住,这不是最好的解决方案,但它的工作。如果有任何人有更好的答案,请告诉我们以备将来参考。
Hope this helps anyone who has this trouble in the future. Remember, this isn't the best solution but it does work. If anyone has a better answer please let us know for future reference.
编辑 2014年4月10日
EDIT on April 10, 2014
em>解决方案是为您的网站购买SSL证书。使用Heroku,您可以使用SSL Endpoint加载项,这需要您在其他地方购买证书。这不是最简单的过程,但会在100%的时间内工作。
The best solution is to buy an SSL certificate for your website. With Heroku, you can use their SSL Endpoint add-on which requires you to buy a certificate elsewhere. This isn't the easiest process, but will work 100% of the time.
快乐编码
这篇关于如何将root(裸)域重定向到www - heroku和zerigo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!