Hi @OTDCP Administrator,
Thanks for reaching out on Microsoft Q&A forum.
I understand you're seeing a “404 Not Found” error after setting up your Application Gateway. That can be frustrating, but we’ll work through it together.
This error usually means the gateway is unable to successfully route your request to the backend application.Reference:404--page-not-found
To help narrow down the cause, I’d recommend a few steps:
Could you please try bypassing the Application Gateway and accessing your backend application directly using its IP address or FQDN and port (for example, http://<backend-ip>:<port>).
- If you still get a 404 error, the issue might be with the backend app itself, maybe the requested path doesn’t exist, or the server isn’t configured to handle it.
- But if the backend responds correctly, then the issue likely lies in the gateway configuration possibly the routing rule or probe settings.
Also check the backend health status in the Azure portal. If the backend is marked as “Unhealthy,” it could be due to incorrect IP/FQDN, port mismatch, or even firewall rules blocking traffic. If it’s “Healthy,” that’s a good sign — it means the gateway can reach your backend.
Reference: application-gateway-backend-health-troubleshooting
Next, please verify that your HTTP listener and routing rules are correctly configured. The listener should match the hostname and port you're using, and the routing rule should point to the right backend pool and HTTP settings.
Reference: listener-type
Speaking of probes, if you’ve set up a custom probe, make sure the path exists and returns a 200 OK response. A misconfigured probe can cause the gateway to mark the backend as unhealthy even if it’s working fine.
Reference: application-gateway-probe-overview
Lastly, it’s worth checking your backend application logs to see if the request is reaching the server and how it’s being handled.
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.