title: AWS Load Balancer to route traffic to one target group with multiple microservices
body: <p>I have ALB which listens to HTTP traffic on port 80, i have added a target-group in ALB listeners which consists of a single EC2 machine. My EC2 instance runs multiple microservices on different ports for eg. App1 runs on 8080 , App2 on 8001, App3 on 8004 so on... EC2 listens on port 80 again for any incoming requests through ALB. I want to do a path based routing for incoming traffic to EC2 to different app ports based on the path for example, </p>
  
  <blockquote>
    <p>"/users" -> app on 8080 ;  "/get/info" -> 8001 etc</p>
  </blockquote>
  
  <p>. Is there a way to achieve it? Or any better way to do what i'm trying ? Right now i have done routing based on ip-tables to route traffic from port 80 of EC2 to single port i.e 8080, but that serves only 1 of my many microservices. How can i configure it to serve all of them?</p>