title: ssl redirection in docker container on aws ecs
body: <p>I have a frontend angular application running  in a nginx docker container in aws ecs ec2.  This is a saas product and other third party domain names will be pointed to  this  frontend docker container.  I have set the default rule to that target group, But I wonder how to set up the ssl for each domain. ALB currently support only 100 listener rules ie in effect each listener will have only 50 rules( considering 80 and 443)</p>
  
  <p>30 rules are already filled by the backend apis. </p>
  
  <p>if I have 150 domains needs to be pointed to this frontend how can I set the ssl?  if I set a 301 redirection in the port 80 vhost of nginx like</p>
  
  <pre><code>return 301 https://$host$request_uri
  </code></pre>
  
  <p>the request will again pass to the application load balancer port 443 and it will take the defaul ssl and may cause ssl error. Is there any chance we can make the nginx https redirection with out going again back port 443 of application load balancer? or any other method? I think the multidomain ssl certificate is an option here so that making it as a defaul ssl on the load balancer.</p>