I have an AWS EC2 working instance with a security group allowing inbound traffic from ports 80, 22 and 443 (HTTP, SSH & HTTPS).
Everything was working fine until I opened a few new ports and deleted the rule allowing HTTPS by mistake. Then of course I couldn't access my website. I checked the ports and added 443 again but I'm still having the same problem. The only thing that worked is allowing ALL traffic but this is a major security hole.
I have a second AWS instance in another account that has exactly the same security rules and it's working as it should.
What could possibly be wrong?
I double checked that it's the right security group and the rules had been applied.
Ports listening on my server (I'm using Ruby on Rails with nginx)
VPC network acl inbound rules:
nc -zv <server_ip> 22 and nc -zv <server_ip> 443
returns successful on both, when "all traffic" rule is off but still no access