Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert How to deal with Proxy Error's...

Replytotopic

How to deal with Proxy Error's

Posted in Forums : Ask a Rails expert

 
Jqtcungqf6beajq7tiof0w9zkslnxun9rjhvi-penjm?feat=directlink

Authority 12
Posting Rating 95
Sign in to rate this post

At times I have been getting server proxy error in my site

Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /home/Soegeresultat.

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,
is it with number of mongrel clusters? or
anything in Apache configuration?

 
Profile

Authority 0
Posting Rating 46
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


<VirtualHost *>
   SetEnv force-proxy-request-1.0 1
   SetEnv proxy-nokeepalive 1
</VirtualHost>
 
Jqtcungqf6beajq7tiof0w9zkslnxun9rjhvi-penjm?feat=directlink

Authority 12
Posting Rating 95
Sign in to rate this post

Can i set email notification in Apache config. to trigger mail whenever the server encounters a proxy error?

 
Portrait

Authority 50
Posting Rating 72
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
WeLikeFood Beta

Replytotopic

Other Recent Topics

Ask a Rails expert : nested application ApplicationController get called intead of children::ApplicationController

Ask a Rails expert : Best way to structure a database for a large/static dataset

Ask a Rails expert : Ruby Developer (ROR) - Scottish based (Remote working from within the UK)

Ask a Rails expert : Above Ground Pool Supplies

Ask a Rails expert : How to get url params in observer or model in Rails 3.1

Ask a Rails expert : What can persuade you to hire Junior Ruby devs with significant PHP experience?

Ask a Rails expert : What industry value does the Ruby or Rails Certification currently have?

Ask a Rails expert : Louis Vuitton Damier Azur Canvas specially sale ( www.salecheaplouisvuitton.com )

Ask a Rails expert : ·How to check errors/puts statements from ruby files which are under cronob

Ask a Rails expert : Louis Vuitton cheap Soft Sided Luggagespecial offer( www.salecheaplouisvuitton.com )

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel