title: Setting up load balancer at my EC2 instance at AWS
body: <p>I set up load balancer to my instances.
  My instances are inside an Auto Scaling Group.</p>
  
  <p>My load balancer has HTTPS listener with SSL certificate from AWS.
  For load balancer's security group has inbound rule set to https with port 443 and outbound rule set to https with port 443 and EC2 instance's security group.</p>
  
  <p>Then EC2 instance has https inbound rule set to load balancer's security group and outbound rule is open to all.
  This scenario doesn't work and I can't load my website.</p>
  
  <p>Then I added http inbound with 0.0.0.0/0 to EC2 instance's security group and I can load my website.</p>
  
  <p>Why I can't set load balancer's outbound fix to ec2's security group and ec2's inbound fix to load balancer's security group?</p>
  
  <p>I have SSL certificate with my domain name. But I can't load my website with https. Using http is fine. Why?</p>