gpt4 book ai didi

apache - 代理服务器收到来自上游服务器的无效响应

转载 作者:行者123 更新时间:2023-11-28 21:44:08 25 4
gpt4 key购买 nike

<分区>

我们在 tomcat 上部署了一个应用程序。要访问应用程序,我们使用向 tomcat 发送请求的 apache。随机浏览器给出以下响应。

Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /sampleapp/<http://samplehost.com:8080/sampleapp/>.
Reason: Error reading from remote server
________________________________
Apache/2.2.21 (Unix) Server at samplehost.com Port 8080

这个错误并不总是出现,到目前为止,我们在只有 IE 的客户端机器上遇到这个错误。在装有 Firefox 的同一台客户端机器上运行良好。

以下是 Apache 日志中针对失败请求的错误跟踪

[Thu Mar 22 02:51:08 2012] [error] [client 10.36.64.137] (20014)Internal error: proxy: error reading status line from remote server localhost:8081, referer: http://samplehost.com:8080/sampleapp/opp/showSearchHome.htm
[Thu Mar 22 02:51:08 2012] [error] [client 10.36.64.137] proxy: Error reading from remote server returned by /sampleapp/opp/searchResult.htm, referer: http://samplehost.com:8080/sampleapp/opp/showSearchHome.htm

当请求失败时,tomcat 日志上不会打印任何内容。

以下是apache安装版本相关信息

-bash-3.00$ ./httpd -v
Server version: Apache/2.2.21 (Unix)
Server built: Sep 21 2011 20:00:58

当试图找出加载的模块时,出现以下错误

-bash-3.00$ /usr/local/apache2/bin/apachectl -t -D DUMP_MODULES
httpd: Syntax error on line 64 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_authnz_ldap.so into server: ld.so.1: httpd: fatal: libldap-2.4.so.2: open failed: No such file or directory

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com