Sub domain connect to AWS EC2 Instance

0

Hello,

I am having a domain and sub-domain with 3rd party service provider, and one ec2 instance, How can I connect my ec2 and my sub-domain so that when users visit my sub-domain they get redirected to my ec2?

I need help in 3 terms

  1. In which way, It can be done for free?

  2. In which way, It can increase my website load and working speed?

  3. In which way, It can increase the speed and functioning as well as security?

已提问 1 年前421 查看次数
1 回答
0

Hi, you can manage the subdomain name by another DNS provider to have the one that you exactly want as long as you do proper remapping via CNAMES

See https://support.dnsimple.com/articles/differences-between-a-cname-alias-url/ and https://ie.godaddy.com/help/edit-a-cname-record-19237 (for Godaddy but similar for other DNS providers)

You will just have to remap the public dns name (under amazon domain) of your ec2 instance to your cname of choice.

on your 3 points:

  • remapping the amazon domain name of your instance to your own subdomain is free
  • this will have no impact on workload and site working speed. The initial name lookup with your subdomain may be a few ms longer because it will go your subdomain alias -> amazon name -> amazon ip instead of just the last 2 but it will happen only once and in usually unperceptible from user standpoint
  • the security of your instance is unchanged: you will do same security definitions on it independently of dns remapping or not
profile pictureAWS
专家
已回答 1 年前
profile picture
专家
已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则