Cant connect my ec2 instance to a domain

0

Hi, im trying to connect my ec2 instance which has an elastic IP to a domain's web. The domain i purchased is from hostinger but it doesnt work. I contacted the support center of hostinger and they told me everything was going fine by their side. The problem is from AWS. I have double checked absolutely everything and it seems everything is fine, but for some reason i cant see my instance content through my domain. By the way, my Public ip of my ec2 instance works: 3.9.243.78

  • Even I'm facing exactly same problem. I have added the A record with ip address. I'm able to access my website using Ip address but not through domain name. Can someone please help. I think this problem is specific to hostinger domain names.

tony
已提问 1 年前2806 查看次数
3 回答
0

Did you update your domain by adding an entry like an A record that points the the EC2 instance IP?

www.mydomain.com A 3.9.243.78 for example?

Also I would recommend that you place the server in a private subnet (within your VPC) and then have a load balancer to direct traffic to your instance. This will provide some security for your instance as it won't be accessible from the outside directly.

You can learn more about this setup from the VPC User Guide example - https://docs.aws.amazon.com/vpc/latest/userguide/vpc-example-private-subnets-nat.html

Hope this helps.

profile picture
已回答 1 年前
0

Hi

As the website is accessible via the IP, we can eliminate any network issues relating AWS. Assuming that the A record on your hostinger is configured and pointed to the IP 3.9.243.78. Could you please verify that this record is configured correctly? -> https://support.hostinger.com/en/articles/4468886-how-to-manage-a-records-in-hpanel

Also, note that sometimes the DNS records can take up to 24 hours to propagate.

profile picture
Bisina
已回答 1 年前
0

Even I'm facing exactly same problem. I have added the A record with ip address. I'm able to access my website using Ip address but not through domain name. Can someone please help. I think this problem is specific to hostinger domain names.

sud
已回答 4 个月前

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

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

回答问题的准则