title: AWS Application Load Balancer not working
body: <p>I have a EC2 cluster with just one EC2 instance, where two services are running:</p>
  
  <ul>
  <li><p>api1, listening at port 8080</p></li>
  <li><p>api2, listening at port 9090</p></li>
  </ul>
  
  <p>If I make requests against EC2 instance and those ports, both APIs work fine. </p>
  
  <p>Now, I want to create a load balancer so I can make requests against <code>http://{load_balancer_ip}/api1</code> and <code>http://{load_balancer_ip}/api2</code>, but I'm not able to.</p>
  
  <p>I have created two target groups, both with just one instance (the only one I have)</p>
  
  <ol>
  <li><code>TargetGroup1</code>: Port 8080 and the EC2 instance registered on port 8080</li>
  <li><code>TargetGroup2</code>: Port 9090 and the EC2 instance registered on port 9090</li>
  </ol>
  
  <p>Then, I have created a load balancer with one listener on port 80 and these two path rules:</p>
  
  <ul>
  <li>When <code>/api1</code>, forward to <code>TargetGroup1</code></li>
  <li>When <code>/api2</code>, forward to <code>TargetGroup2</code> </li>
  </ul>
  
  <p>When I make requests against <code>http://{load_balancer_ip}/api1</code> or <code>http://{load_balancer_ip}/api2</code> nothing happens; I don't get any response.</p>
  
  <p>What am I missing?</p>