PicSunday.com

thumb
Description : 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"
Tags : aws url based routing, alb path based routing, aws application load balancer, path based routing, alb, aws, Grab AWS - Application Load Balancer: Path based Routing to 3gp, MP4, Full HD MP4, 4K Video, 3D Free Download AWS - Application Load Balancer: Path based Routing