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.

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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ