如何重定向域亚马逊EC2机? [英] How redirect a domain to Amazon EC2 Machine?
问题描述
我使用亚马逊EC2的主办建在JSP网站:
i'm using EC2 of Amazon to host a website built in jsp :
<一个href="http://ec2-50-17-144-64.compute-1.amazonaws.com:8080/p2p">http://ec2-50-17-144-64.compute-1.amazonaws.com:8080/p2p
和我买了这个域名: www.p2pbrasil.com
And i bought this domain: www.p2pbrasil.com
我怎样才能重定向www.p2pbrasil.com到我的网站在Amazon EC2上?
How can i redirect www.p2pbrasil.com to my website in Amazon EC2 ?
当有人输入www.p2pbrasil.com重定向到<一个href="http://ec2-50-17-144-64.compute-1.amazonaws.com:8080/p2p">http://ec2-50-17-144-64.compute-1.amazonaws.com:8080/p2p ?
When someone type www.p2pbrasil.com it redirects to http://ec2-50-17-144-64.compute-1.amazonaws.com:8080/p2p ?
最好的问候, 瓦尔特·恩里克。
Best regards, Valter Henrique.
推荐答案
您需要做两件事情
- 在亚马逊Web服务管理面板,创建于同一区域的弹性IP为您的实例和准该IP与您的这个实例(IPS费什么劲,而他们都与实例相关联的,但成本如果没有)。
- 添加一条记录您的域名映射域(1)分配弹性IP地址的DNS记录。您的域提供要么给你一些方法来设置A记录(IP地址),或者它会给你一种方式来编辑您的域的域名服务器。
如果他们没有让你直接设置A记录,发现像ZoneEdit一个DNS管理服务,注册域名作为一个区域有和ZoneEdit会给你的域名服务器在你的域名提供商的管理面板进入。然后,您可以添加一条记录在ZoneEdit域。
If they do not allow you to set the A record directly, find a DNS management service like ZoneEdit, register your domain as a zone there and ZoneEdit will give you the nameservers to enter in the admin panel of your domain provider. You can then add the A record for the domain in ZoneEdit.
我只提ZoneEdit因为基本服务是免费的,你也可以使用亚马逊的路径53或类似的付费服务,如果你preferred。
I only mention ZoneEdit because the basic service is free, you could also use Amazon route 53 or a similar pay-for service, if you preferred.
这篇关于如何重定向域亚马逊EC2机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!