We need to point two domains to the same EC2. It is not working.

0

We are looking to solve a problem with NGINX in AWS. It is not pointing correctly and pointing to a port 5000. We have not specified the setting in the config file. Also, our EC2 is showing that is not connected to the domain but it is the only EC2 we have, which in fact points to our domain. There are no errors shown.

We need to point two domains to the same EC2. We are using AWS and trying to avoid having to create a new server. Is there a video anyone may be able to share or correct the process? Thank you!

1개 답변
0

Hello there, 

I understand that you  need to point two domains to the same ec2, and the resolution to that would be the following:

  1. Make sure that your instance has an elastic ip address which helps the instance to have a static ip. See reference [1] for Elastic IP addresses.
  2. Create the two A records (Domains) in the DNS Zone of your same or different registrar pointing to the elastic ip of your EC2 instance to get the requests routed. See reference [2] for more information on creating records. Please note that if you are having a public DNS instead of an Elastic IP address, you can add CNAME records instead of A records.

References:

[1] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html

[2] https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-creating.html

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠