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.

2 Answers
1
Accepted Answer

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
answered 10 months ago
  • 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
EXPERT
answered 10 months ago
  • 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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions