Apache的代理错误 [英] Apache Proxy Error

查看:357
本文介绍了Apache的代理错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我间歇性地收到以下错误我的服务器上:

I am getting the following error intermittently on my server:

**Proxy Error** 
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.
Reason: Error reading from remote server

错误日志显示如下:

The error logs show the following:

[Sun Feb 06 03:06:00 2011] [error] [client 82.43.154.57] proxy: Error reading from remote server returned by /login, referer: https://demo.XXXXX.us/
[Sun Feb 06 03:06:30 2011] [error] [client 82.43.154.57] (70007)The timeout specified has expired: proxy: error reading status line from remote server XXXXX.us
[Sun Feb 06 03:06:30 2011] [error] [client 82.43.154.57] proxy: Error reading from remote server returned by /
[Sun Feb 06 03:13:31 2011] [error] [client 82.43.154.57] (70007)The timeout specified has expired: proxy: error reading status line from remote server XXXXX.us
[Sun Feb 06 03:13:31 2011] [error] [client 82.43.154.57] proxy: Error reading from remote server returned by /

我看了很多帖子建议在Tomcat和Apache环境设置连接超时设置的。我已经设置了以下在httpd.conf:

I have read a lot of posts suggesting connection timeout settings in tomcat and environment settings in Apache. I have set the following in httpd.conf:

<VirtualHost *>
   SetEnv force-proxy-request-1.0 1
   SetEnv proxy-nokeepalive 1
</VirtualHost>

我还设置tomcat的server.xml中的以下内容:

I have also set the following in tomcat server.xml:

<Connector port="9080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="9443" acceptCount="100"
               connectionTimeout="60000" disableUploadTimeout="true" />

此外,一旦出现错误,我要开始新的浏览器的错误消失,因为它继续显示即使在刷新。其次,我使用htaccess的重写的URL。不知道这对误差产生任何影响?

Also, once the error occurs, I have to start a new browser for the error to disappear as it continues to show even on a refresh. Secondly, I am using htaccess to rewrite the url. Don't know if this has any impact on the error?

编辑>
我的服务器是正常倍的可用内存150MB运行,并且可以下降相当低,但不是在上面的错误的确切时间。这会导致这样的错误?

EDIT> My server is running on 150mb of free memory at normal times and can drop quite low but not at the exact times of the above error. Would this cause such an error?

我想AP preciate任何想法的人都有。

I would appreciate any ideas people have.

感谢您。

推荐答案

这是梨梅勒的问题。

我们使用梨梅勒它使用一个队列堆栈电子邮件准备使用cron作业发送。有没有在梨脚本错误这是被称为在我们网站上的每一个动作(决策职位,发送邮件等)。梨崩溃从而坠毁造成上述错误的浏览器。

We were using Pear Mailer which uses a queue to stack emails ready for sending with a cron job. There was an error in the Pear script which was being called on every action on our site (making posts, sending messages etc..). Pear was crashing which in turn crashed the browser resulting in the above errors.

禁用梨解决了这个问题,并扭捏code得到它的再次合作。

Disabling Pear resolved the problem, and tweaking the code got it working again.

花了这么长时间才找到的问题,因为我们从来没有想过梨梅勒可能会导致这样的反应。

It took so long to find the issue as we never thought Pear Mailer could cause such a response.

这篇关于Apache的代理错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆