首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Linux上的Azure Web App出现502代理错误

Linux上的Azure Web App出现502代理错误
EN

Stack Overflow用户
提问于 2017-06-23 05:29:45
回答 1查看 398关注 0票数 0

这是我的问题,我将现有的Nodejs api应用程序从Azure Web app部署到Linux上的Azure Web App。测试的原因是为了确认Web App上的性能是相同的,而不管操作系统是什么。(我总是认为它在Linux上运行得更快)。在部署之后,我正在使用查询的其余部分http:///api/{the测试GET,这是在NodeJS的路由中配置的。

作为GET查询的结果,我得到以下错误:

代码语言:javascript
复制
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
    <head>
        <title>502 Proxy Error</title>
    </head>
    <body>
        <h1>Proxy Error</h1>
        <p>The proxy server received an invalid
response from an upstream server.
            <br />
The proxy server could not handle the request
            <em>
                <a href="/api/restaurantlist">GET&nbsp;/api/restaurantlist</a>
            </em>.
            <p>
Reason: 
                <strong>Error reading from remote server</strong>
            </p>
        </p>
        <hr>
        <address>Apache/2.4.18 (Ubuntu) Server at vivaapitest Port 80</address>
    </body>
</html>

希望你能帮助我,如果我需要配置.htcaccess的原始重定向更改,任何帮助或建议将不胜感激!谢谢。

EN

回答 1

Stack Overflow用户

发布于 2017-06-23 17:42:38

错误5xx表示服务器端错误。您可以使用Azure CLI 2.0捕获错误日志,然后查看日志显示的内容。更多详情,请参考Capturing stdout in Azure Linux App Service via NodeJs

还要注意,托管Node.js应用程序的Linux上的Azure Web App使用PM2来管理Node.js进程。因此,您可能需要specify the PM2 configuration file (而非.htcaccess)才能用于您的Node.js应用程序。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44709690

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档