Search code examples
amazon-web-servicesmobile-websiteamazon-elb

Can I create rule on AWS ELB so as to transfer all mobile traffic to another EC2/server


We do not have mobile app right now. We host mobile website on different EC2 instances. As of now I ELB which redirects traffic to nginx. We have logic on my nginx to identify mobile traffic and redirect to appropriate EC2 instance.

Is it possible to put a logic on ELB itself so as to redirect Mobile traffic to another EC2 instance ?


Solution

  • Amazon Elastic Load Balancer currently does not have redirect logic. It will only forward traffic to the EC2 instances behind the ELB.

    To redirect to another EC2 instance, you'll need to do that processing at your nginx/EC2 instance layer.