Setting up https on domain

0

I registered a domain on namecheap, I use AWS route 53 as my DNS, I have setup everything like adding the ns values to my domain in namecheap, I requested a certificate from AWS cert manager, it has been validated, I created a load balancer so I can use the cert on my domain,but it is not working at all, the site doesn't come up anymore since I edited my records on route53 so I can add some records that will route traffic to the loadbalancer and then to the target group and then the ec2 instance. Please help me.

Efon
已提问 1 年前323 查看次数
2 回答
1
已接受的回答

Can you access the instance directly via the ALB hostname? If this works, the problem is between Route 53 and ALB, otherwise it's between ALB and the EC2 instance. In that case, verify security groups, target groups, possible health checks.

profile pictureAWS
已回答 1 年前
  • Where can I find the ALB hostname please?

  • On the ALB its self

  • Do you mean the ALB DNS value? If that's the case, it wasn't reaching the instance. I don't know if you can guide me to start from afresh in building everything from the ec2 instance to adding a SSL cert on the domain?

0

Sounds like you do not have the DNS record setup in your zone in route53..

Does the DNS Name for your website resolve?

UPDATE Make sure the SG on the ALB allows access from 0.0.0.0/0 on HTTP/HTTPS and on your EC2 SG make sure it allows access from the ALB SG on port HTTP/HTTPS

profile picture
专家
已回答 1 年前
  • Yes I do, when I edit the A record on route 53 and change it to my ec2 instance elastic ip, the site opens. But when I changed the same A record to the loadbalancer that has a target group with the ec2 instance using alias the site won't come up at all.

  • Ok, I would take a look at your security groups on your ALB and your EC2. Make sure the SG on the ALB allows access from 0.0.0.0/0 on HTTP/HTTPS and on your EC2 SG make sure it allows access from the ALB SG on port HTTP/HTTPS

  • Thanks it worked, it was sg issue. efong.xyz

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

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

回答问题的准则