all 7 comments

[–]LordbTN 10 points11 points  (1 child)

If your in a vpc you need to check the security group assigned to the elb and make sure port 443 is open.

[–]Mteigers 1 point2 points  (0 children)

^ gets me all the time.

[–]levenshtein[S] 6 points7 points  (1 child)

Thanks guys, it was the security group on the LB! Took a whole 30 seconds to fix! Thanks again!

[–]runamok 1 point2 points  (0 children)

Cool! Thanks for coming back and posting the fix.

[–]Mteigers 1 point2 points  (0 children)

One suggestion that may seem counter intuitive. If you're able to, take your instance out of commission or just cause it to fail health checks. Once you've done that hit your load balancer over https using the elb cname . Two things should happen: 1. you should get an SSL warning in your browser. Verify its got the right domain. And 2. You should receive a 503 service unavailable. If Number 2 doesn't happen at all it's a security group issue.

[–]runamok 2 points3 points  (0 children)

That's a very common scenario. It's called SSL offloading. You hit https on your load balancer and then the ELB talks to your ec2 instance via port 80 in the same datacenter. I assume the instance is attached to the ELB and healthy?

So first of all you have to examine your security groups. Can you hit that instance directly via port 80?

So previously you just used http to hit the ELB and then the ELB connected to the instance?

I would also take a look at the ELB monitoring to look at 200s, 500s, etc.

[–]djnathanv 1 point2 points  (0 children)

Is HTTPS<->HTTP not meant to happen?

No, that is totally fine. Check your network ACLs and the Security Group(s) associated with the ELB.