title: Can a single ELB serve multiple domains? Can it serve multiple subdomains?
body: <p>I am wondering if ELB can route http requests to different ASGs (or different instances if the backend is a single instance based rather than ASG based), based upon the domain name.</p>
  
  <ul>
  <li><p>Say, I am company owning two domains and these two domains serve different services. Can I put a single ELB in front of the two different logic serving ASGs? (See the following diagram for what is in my mind)
  <a href="https://i.stack.imgur.com/accra.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/accra.jpg" alt="enter image description here"></a></p></li>
  <li><p>(If the answer to the above question is 'NO', would you please explain why which may answer the next question all together?) And then I have a similar question, can ELB serve different subdomains from different ASGs (see the next diagram)?</p></li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/IBxFZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IBxFZ.jpg" alt="enter image description here"></a></p>