Hi @George Mathews,
Please verify that the path patterns in your Application Gateway routing rules match the actual content served by your backend servers. For example, if the rule is /images/*
, your server should serve content like /images/index.html
.
Additionally, log in to both Ubuntu VMs and check whether the corresponding folders exist using the appropriate commands.
sudo ls /var/www/html/images/
sudo ls /var/www/html/youtube/
For testing, try accessing the application directly from the backend VM's public IP and check whether you're able to reach the content successfully
http://<backend-ip>/images/
http://<backend-ip>/youtube/
Check the local firewall ports using the cmdlet below.
sudo ufw status verbose
If the firewall is enabled, make sure to allow port 80 using the cmdlet below
sudo ufw allow 80
To enable UFW (if needed): sudo ufw enable
If you are able to access the application using the VM's public IP, please verify the path-based settings in the application gateway's backend target configuration.
And also check the backend settings configuration.
**Health Probe settings
**
[http://172.212.65.134/images/ ]
[[http://172.212.65.134/youtube/]]
Here is my result of images server and YouTube.
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
I really appreciate your feedback. It’s valuable to us. Please click Accept Answer on this post to assist other community members facing similar issues in finding the correct solution