如何设置自定义域在Amazon EC2上的应用程序?定义域、应用程序、如何设置、Amazon

2023-09-11 08:36:02 作者:别ㄋ那所谓的曾经

我是新的Amazon EC2的世界,我刚刚创建的应用程序,位于URL是这样的:

I am new in the Amazon EC2 world, I just created an app, that is located URL like this:

http://ec2-54-123-45-678.compute-1.amazonaws.com:8080

这是生成的URL亚马逊EC2。

This is generated URL by Amazon EC2.

现在我需要用我自己的域名,所以当我访问的 www.my-domain-name.com ,我想看到​​

Now I would need to use my own domain name, so when I would access www.my-domain-name.com, I would like to see the content from

http://ec2-54-123-45-678.compute-1.amazonaws.com:8080

我买了GoDaddy的域名。 有没有办法做到这一点的亚马逊AWS仪表板或做我需要将其设置在Godaddy的系统?

I bought the domain name on Godaddy. Is there any way to do this in Amazon AWS dashboard or do I need to set it up in Godaddy system?

感谢

推荐答案

我回答的更广泛的层面,因为设置我的自定义域时,我偶然发现了这个线索。

I am answering on a more general level because I stumbled upon this thread when setting my custom domain.

在亚马逊我创建了一个实例和相关联的IP到该实例。您能够通过键入亚马逊URL来访问它。

In Amazon I created an instance and associated an IP to that instance. You were able to access it by typing in the amazon url

我实际使用媒体寺没有GoDaddy的,但是这将是类似的。我去解析文件,并补充说,公众的URL的 WWW

I actually used Media Temple not GoDaddy, but it will be similar. I went to the zone file and added that public url to the www

正如你所看到的,这里是我的博客实际上是工作的自定义域。

And as you can see, here is my blog actually working on the custom domain.

我设置了​​通配符,因为这样一来,不管是什么类型的人,如果没有设置,那么他们将仍然可以看到该网站。

I set the wildcard because that way, no matter what someone types, if it is not set, then they will still see the site.

修改

有关的根URL,你应该输入你的弹性IP和设置,作为一个A记录。

For the root URL you should be entering your elastic IP and setting that as an A record.