AWS - Application Load Balancer: Path based Routing
AWS with Chetan AWS with Chetan
86.1K subscribers
35,241 views
0

 Published On Mar 11, 2019

See how to configure Application Load Balancer for Path based routing.

Useful contents:
1. Userdata for webserver 1.

#!/bin/bash
yum install httpd -y
service httpd start
chkconfig httpd on
mkdir /var/www/html/hi
echo "Hi there..you reached to right backend ec2" REPLACE_THIS_WITH_GREATER_THAN_SIGN /var/www/html/hi/index.html
echo "Configured successfully"

2. Userdata from Webserver 2
#!/bin/bash
yum install httpd -y
service httpd start
chkconfig httpd on
mkdir /var/www/html/bye
echo "Bye from ec2" REPLACE_THIS_WITH_GREATER_THAN_SIGN /var/www/html/bye/index.html
echo "Configured successfully"

If you are interested in learning AWS Networking in depth visit this course of mine:
https://www.awswithchetan.com/courses...

Regards,
Chetan
Email: [email protected]

show more

Share/Embed