# Example

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

![](https://3776180966-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LgLv25e2BrxRC5m6flh%2F-LljjfeMPpAhIYT4Emdl%2F-LljjqTEeMdMapnU2scO%2FScreen%20Shot%202019-08-08%20at%2011.11.29%20AM.png?alt=media\&token=e11221ac-7c85-40fe-8438-6953ebb2d27e)

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"
```

![](https://3776180966-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LgLv25e2BrxRC5m6flh%2F-LljjfeMPpAhIYT4Emdl%2F-Lljkc3EQr4ZHKpIMW4_%2FScreen%20Shot%202019-08-08%20at%2011.15.00%20AM.png?alt=media\&token=9765bcea-5c5f-4450-9a02-af1727b83f2a)
