我们正在使用 apache 代理来使我们的应用程序服务器能够通过 Internet 访问特定的网站。设置如下:
application servers --> apache proxy --> Internet website
Run Code Online (Sandbox Code Playgroud)
一些请求失败并在应用程序服务器日志中出现以下错误:
<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="/link">POST
nbsp;/link</a></em>.<p>
Reason: <strong>Error reading from remote server</strong></p></p>
</body>
Run Code Online (Sandbox Code Playgroud)
以及 apache error.log 文件中的以下调试日志:
[Mon May 20 09:57:54 2013] [debug] mod_proxy_http.c(56): proxy: HTTP: canonicalising URL //myURL.com
[Mon May 20 09:57:54 2013] [debug] proxy_util.c(1506): [client 172.20.101.71] proxy: https: found worker …Run Code Online (Sandbox Code Playgroud)