AWS - Application Load Balancer: Path based Routing
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/AWS-VPC-and-Networking
Regards,
Chetan
Email: [email protected]