You are here: Forums Ask a Rails expert How to deal with Proxy Error's...
Posted in Forums : Ask a Rails expert
Authority 12
Posting Rating 96
Sign in to rate this post
|
At times I have been getting server proxy error in my site Proxy Error Reason: Error reading from remote server Apache/2.0.59 (Win32) mod_ssl/2.0.59 OpenSSL/0.9.7j Server at www.XXXXXXXX.com Port 80 I am using Mongrel with Apache on Windows 2003 server, running 20 mongrel clusters . I am not able to figure out where the issue is, |
Authority 37
Posting Rating 38
Sign in to rate this post
|
Hi Bala, If you are running mongrel_cluster in background with apache+mod_proxy to serve rails requests then this might help you. mod_proxy sometimes reject requests to Mongrel. This comes from two known Apache bugs #39499 and #37770 To resolve the problem and as workaround for it add the lines below to your Apache VirtualHost section. #Fix for Apache bug 39499
|
Authority 12
Posting Rating 96
Sign in to rate this post
|
Can i set email notification in Apache config. to trigger mail whenever the server encounters a proxy error? |
Authority 25
Posting Rating 70
Sign in to rate this post
|
Balaji, No, I don’t believe you can set Apache to notify you when this Proxy error occurs, because this is a passive proxy error, meaning that it does this only when requests come in. It does not do any kind of active monitoring of the mongrel_cluster behind it. That is, unless there is something that I’m not familiar with. Your best bet is to setup some kind of remote monitoring, that checks for the HTTP status code, or even content at regular intervals. A lot of remote monitoring services exist, and I’m certain some of them are capable of monitoring based on content or response code. Kevin Elliott |
Ask a Rails expert : Send dynamicly generated pdf as attachement
Ask a Rails expert : Rails Google Maps Plugin
Ask a Rails expert : link_to_remote to empty a field
Ask a Rails expert : calling class method in before filter
Ask a Rails expert : Storing values in database from popupwindow form
Ask a Rails expert : Optimising code
Ask a Rails expert : File upload
Ask a Rails expert : Deployment Question
Ask a Rails expert : Prevent session dumps from search robots
Ask a Rails expert : Best way to protect contact form