這是我的問題 我在Azure Web App上將現有的Nodejs api應用程序從Azure Web App部署到Linux上的Azure Web App。測試的原因是確認Web應用程序的性能與操作系統相同(我一直認爲它在Linux中運行得更快)。部署完成後,我正在使用http:/// api/{查詢的其餘部分}測試GET,它已在NodeJS的路由中配置。Linux上的Azure Web App與502代理錯誤
由於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的任何錯誤日誌? –