【发布时间】:2017-06-22 21:29:44
【问题描述】:
这是我的问题 我将现有的 Nodejs api 应用程序从 Azure Web App 部署到 Linux 上的 Azure Web App。测试的原因是为了确认 Web App 的性能在任何操作系统上都是相同的。(我一直认为它在 Linux 中会运行得更快)。部署后,我正在测试一个带有 http:///api/{其余查询}的 GET,它已在 NodeJS 的路由中配置。
作为 GET 查询的结果,我收到以下错误:
<!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 /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>
如果我需要为 aparche 重定向更改配置 .htcaccess,希望您能帮助我 任何帮助或建议将不胜感激!谢谢。
【问题讨论】:
-
任何来自 API 的错误日志?
标签: node.js linux azure azure-web-app-service