Azure Application Gateway 502 issue

Azure Application Gateway 502 issue

I have a prod environment at the azure. Application gateway 2 apps serves. It’s a PHP web application on docker env port 80.
then I host my seconde PHP web application in port 8080. it working fine on the servers but when am trying on the application gateway is not working.
am getting an error as below.

Server Error

502 – Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.

and my URL is
then I tried a simple site to host its worked

I guess ext after the port /NDOT/ND is might be the issue. if its how to I allow that.

Go to Source
Author: shukry