Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 14385 invoked from network); 25 Nov 2006 15:45:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Nov 2006 15:45:26 -0000 Received: (qmail 90193 invoked by uid 500); 25 Nov 2006 15:45:21 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 90187 invoked by uid 500); 25 Nov 2006 15:45:21 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 90173 invoked by uid 99); 25 Nov 2006 15:45:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Nov 2006 07:45:20 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of todd.nine@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Nov 2006 07:45:08 -0800 Received: by nf-out-0910.google.com with SMTP id p77so1737990nfc for ; Sat, 25 Nov 2006 07:44:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=UEOroU2S7fYmNDvP4dj1pqbYWuUrluPJgkJe2IHSp1VuaCIZAlia2ZciqwvvsexT1TgRhnr3IxBDTplPAs0bq/11d+FJ1OS+JnwG9IQL/mx+umwlzU4NqibZAVV6L9eU9K3uVUZYfNIatcMlW61vPKEtmU2IBcbEC5PiQI3tLP0= Received: by 10.82.135.13 with SMTP id i13mr1738128bud.1164469486650; Sat, 25 Nov 2006 07:44:46 -0800 (PST) Received: by 10.82.146.20 with HTTP; Sat, 25 Nov 2006 07:44:46 -0800 (PST) Message-ID: Date: Sat, 25 Nov 2006 10:44:46 -0500 From: "Todd Nine" To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_32349_1721588.1164469486625" References: X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Re: Help with mod_proxy ------=_Part_32349_1721588.1164469486625 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline No you misunderstood my post. I'm not an idiot, I understand the point of proxying, if the target server is down I won't be able to connect. Here's a more clear example. I'm proxying 2 http servers, server A and server B. If server B is not running when the proxy starts, I can't connect to server A. I receive this message in the browser Bad Gateway The proxy server received an invalid response from an upstream server. as well as the error in the log I posted previously, but its not an error for the host I'm requesting with the browser! Its not clear to my why the proxy virtual hosts are not independent of each other. Is there another configuration directive I need? Todd On 11/25/06, paul wrote: > > Todd Nine schrieb: > [snip] > > > Now, I am having a problem, and have a question. First if all of the > > servers I am connecting to via the proxy server are not running, all of > the > > virtual hosts that I'm proxying fail with the following error message > for > > every back end server that's not running. This seems to cause all > proxying > > to fail. > Wait, you're saying if the backend is down proxying fails? What a > surprise... > > > > > [Fri Nov 24 14:07:26 2006] [error] (113)No route to host: proxy: HTTP: > > attempt to connect to 192.168.221.102:80 (192.168.221.102) failed > > > > How can I set up the virtual host proxy to not cause an error if it > cannot > > connect to the back end server? Second, how can I set up a default "the > > server is under maintenance" page with the host name in it? > I get a proxy error with a HTTP error code (cannot remember offhand). It > should be possible to set up a custom error page to catch that. > > cheers > Paul > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > ------=_Part_32349_1721588.1164469486625 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline No you misunderstood my post.  I'm not an idiot, I understand the point of proxying,  if the target server is down I won't be able to connect.  Here's a more clear example.  I'm proxying 2 http servers, server A and server B.  If server B is not running when the proxy starts, I can't connect to server A.  I receive this message in the browser

Bad Gateway

The proxy server received an invalid response from an upstream server.


as well as the error in the log I posted previously, but its not an error for the host I'm requesting with the browser!  Its not clear to my why the proxy virtual hosts are not independent of each other.  Is there another configuration directive I need?

Todd

On 11/25/06, paul <paul@subsignal.org> wrote:
Todd Nine schrieb:
[snip]

> Now, I am having a problem, and have a question.  First if all of the
> servers I am connecting to via the proxy server are not running, all of the
> virtual hosts that I'm proxying fail with the following error message for
> every back end server that's not running.  This seems to cause all proxying
> to fail.
Wait, you're saying if the backend is down proxying fails? What a
surprise...

>
> [Fri Nov 24 14:07:26 2006] [error] (113)No route to host: proxy: HTTP:
> attempt to connect to 192.168.221.102:80 (192.168.221.102) failed
>
> How can I set up the virtual host proxy to not cause an error if it cannot
> connect to the back end server?  Second, how can I set up a default "the
> server is under maintenance" page with the host name in it?
I get a proxy error with a HTTP error code (cannot remember offhand). It
should be possible to set up a custom error page to catch that.

cheers
Paul


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


------=_Part_32349_1721588.1164469486625--