代理错误502:代理服务器从上游服务器收到无效响应 [英] Proxy Error 502 : The proxy server received an invalid response from an upstream server

查看:6344
本文介绍了代理错误502:代理服务器从上游服务器收到无效响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在用Java构建群发邮件发送应用程序。邮件由第三方SMTP发送。发送400-500邮件后tomcat6服务停止。以下是错误。

We are building a mass mailing sending application in Java. Mail is being send by third party SMTP. After sending 400-500 mails tomcat6 service get stopped. Below is the error.


代理错误
代理服务器收到来自上游服务器的无效响应。代理服务器无法处理请求GET
/lin/Campaignn.jsp。
原因:从远程服务器读取错误

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

此外,尝试使用ErrorDocument时遇到502 Bad Gateway错误处理请求。

Additionally, a 502 Bad Gateway error was encountered while trying to use an ErrorDocument to handle the request.

msizzler.com上的Apache服务器端口80

Apache Server at msizzler.com Port 80

但是当我们从localhost发送时我没有收到任何错误。它发送所有邮件。
请帮我解决这个问题。

But when we are sending from localhost I did not received any error. It send all the mails. Please help me to sort it out this problem.

推荐答案

当遇到HTTP 502Bad Gateway响应时Apache Web服务器没有从上游服务器收到有效的HTTP响应,在这种情况下是您的Tomcat Web应用程序。

The HTTP 502 "Bad Gateway" response is generated when Apache web server does not receive a valid HTTP response from the upstream server, which in this case is your Tomcat web application.

可能发生这种情况的一些原因:

Some reasons why this might happen:


  • Tomcat可能已崩溃

  • Web应用程序没有及时响应,Apache的请求超时

  • Tomcat线程超时

  • 网络设备阻止请求,可能是某种连接超时或DoS攻击防范系统

  • Tomcat may have crashed
  • The web application did not respond in time and the request from Apache timed out
  • The Tomcat threads are timing out
  • A network device is blocking the request, perhaps as some sort of connection timeout or DoS attack prevention system

如果问题与超时设置有关,您可以通过调查以下内容来解决问题:

If the problem is related to timeout settings, you may be able to resolve it by investigating the following:


  • ProxyTimeout Apache的mod_proxy指令

  • Apache Tomcat的连接器配置

  • 您的网络设备手册

  • ProxyTimeout directive of Apache's mod_proxy
  • Connector config of Apache Tomcat
  • Your network device's manual

这篇关于代理错误502:代理服务器从上游服务器收到无效响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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