I created an alb named demoLoadBalancer with two target groups, namely tg1 and tg2. Both the target groups had ec2 instances running. ec2 instance in tg1 was running an apache server with LandingPage.html in /var/www/html and tg2 had music.html in /var/www/html. I have configured path rules in load balancer. Default path is set to LandingPage.html, /server1/* is set to LandingPage.html and /server2/* is set to music.html. The screenshot is attached below:
Now, when i access the default url of the demoloadbalancer, it forwards me to LandingPage.html. But when i try to load the webPage using /server/LandingPage.html it throws 404 error.The images are attached below:
Thanks in advance!!!




