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 年前檢視次數 2807 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南