> For the complete documentation index, see [llms.txt](https://tkssharma-devops.gitbook.io/devops-training/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tkssharma-devops.gitbook.io/devops-training/syllabus/untitled/aws-compute/aws-elb/application-load-balancer/example.md).

# Example

ALB path based routing between two different web servers&#x20;

![](/files/-LljjqTEeMdMapnU2scO)

Useful contents: 1. User-data for two different EC2 Instances&#x20;

```
!/bin/bash
yum install httpd -y
service httpd start
chkconfig httpd on
mkdir /var/www/html/bye
echo "Bye from ec2" >  /var/www/html/bye/index.html
echo "Configured successfully"
```

```
!/bin/bash
yum install httpd -y
service httpd start
chkconfig httpd on
mkdir /var/www/html/hi
echo "Bye from ec2" >  /var/www/html/bye/index.html
echo "Configured successfully"
```

![](/files/-Lljkc3EQr4ZHKpIMW4_)
