【发布时间】:2022-01-26 23:46:59
【问题描述】:
我有一个带有 PHP 和 apache 的网络服务器。
我将它附加到应用程序网关,但我仍然无法访问我的应用程序。
当我输入我的网站 URL:HTTP://
502 Bad Gateway
Microsoft-Azure-Application-Gateway/v2
我创建了一个健康问题,当我将带有域名的虚拟机的 IP 地址输入到我的主机文件中时,我可以访问系统。
奇怪的是,当我编辑我的后端池时,我得到了这个错误,我在任何地方都找不到答案
编辑:
@KenWMSFT 帮助解决了屏幕截图中的错误,现在当我进入应用程序网关时,我收到以下警告:
All the instances in one or more of your backend pools are unhealthy. This will result in a 502 error when you try to access your application hosted behind the Application Gateway. Please check the backend health and resolve the issue.
此外,我没有看到任何后端运行状况,也没有看到配置它的方法...
【问题讨论】:
-
如果可能,请尝试重置有问题的 VM NIC。 docs.microsoft.com/en-us/troubleshoot/azure/virtual-machines/…
-
@KenWMSFT 很好,错误已从后端池中消失,但通过 HTTP 访问时我仍然收到错误 502,通过 HTTPS 访问时我仍然收到错误 502 和 ERR_CONNECTION_REFUSED
标签: azure azure-web-app-service load-balancing azure-application-gateway