502 Proxy error

05 Feb '15, 06:15 AM
8,337 Views
No Forum Badges

Hello. I have a question about the proxy error.

Why does this error occur?

how to fix that?

 

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

 
x 0
Follow
Answer Answer at this question and get points!
Forum Starter - Level 2

Hi,

 

This error typically appears when Apache web server does not receive a valid HTTP response from the upstream server, which in this case is your Tomcat web application. If you are not using Apache HTTP Server and your are using only Tomcat the error may be generated due the following reasons:

  • 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, or maybe a firewalll
  • Tomcat may have crashed

 

If you are using Apache, the solution is simple. Just edit the httpd.conf file increasing the Timeout and ProxyTimeout values and adding the ProxyBadHeader parameter.

 

Timeout 3000
ProxyTimeout 3000
ProxyBadHeader Ignore

 

More information you can find on Apache website  (http://httpd.apache.org/docs/2.2/mod/mod_proxy.html)

 

Also, please tell us in which configuration this error apears (Apache-Tomcat, only Tomcat, Nginx-Tomcat, etc.)

 

   
x 0
No Forum Badges

Thank you for your answer soon.

I just deployed my project on the cloud.

 
x 0
No Forum Badges

hola tengo el mismo erro pero no tengo instalado  apache, como valido el log de webratio?

 
x 0
Answer at this question and get points!