Proxy Error 502 : The proxy server received an invalid response from an upstream server

前端 未结 2 1394
梦谈多话
梦谈多话 2020-12-23 07:06

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 err

相关标签:
2条回答
  • 2020-12-23 07:22

    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 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 directive of Apache's mod_proxy
    • Connector config of Apache Tomcat
    • Your network device's manual
    0 讨论(0)
  • 2020-12-23 07:35

    Add this into your httpd.conf file

    Timeout 2400
    ProxyTimeout 2400
    ProxyBadHeader Ignore 
    
    0 讨论(0)
提交回复
热议问题