Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 82906 invoked from network); 12 May 2003 23:26:04 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 12 May 2003 23:26:04 -0000 Received: (qmail 21101 invoked by uid 97); 12 May 2003 23:28:15 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 21094 invoked from network); 12 May 2003 23:28:14 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 12 May 2003 23:28:14 -0000 Received: (qmail 81411 invoked by uid 500); 12 May 2003 23:25:49 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 81400 invoked from network); 12 May 2003 23:25:49 -0000 Received: from unknown (HELO office.worldlingo.com) (61.8.105.65) by daedalus.apache.org with SMTP; 12 May 2003 23:25:49 -0000 Received: (qmail 27109 invoked from network); 12 May 2003 23:25:52 -0000 Received: from client008.worldlingo.com (HELO tonywhite) (tonywhite@10.0.0.8) by office.worldlingo.com with SMTP; 12 May 2003 23:25:52 -0000 Message-ID: <00ab01c318dd$d5412040$0800000a@worldlingo.com> From: "Tony F. White" To: "Tomcat Users List" References: <05C5E9C1E2A99446A026C0DA9400AFDC0B96D0@semele.server.fl.corp.intranet> Subject: Re: Mod_JK2 and 503 ErrorDocument Date: Tue, 13 May 2003 09:25:53 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Kraemer I am not sure why it does not work for you... but below is the configuration we use... Here is the mod_jk2.conf - we have an include call to make this part of the httpd.conf --------------------- LoadModule jk2_module modules/mod_jk2.so JkSet config:file /usr/local/apache/conf/jk2/workers2.properties --------------------- Then in the workers2.properties file on the we have: --------------------- [channel.socket:server1socket] tomcatId=as1 host=server1 port=8009 #keepalive=0 group=lb_1 [ajp13:server1socket] tomcatId=as1 route=as1 #group=lb_1 level=1 #max_connections=0 [lb:lb_1] timeout=10 attempts=3 recovery=60 noWorkerMsg=/en/error503.html noWorkerCode=302 --------------------- Note I have only included details from the conf file for one of the app servers. We would rather use the proper errorcode of 503 and have the apache errordocument handler take care of displaying the error page but it does not seem to want to work, works for internal server error pages but not 503's from mod_jk2. HTH Tony. ----- Original Message ----- From: "Eduardo Kraemer Goes" To: "'Tomcat Users List'" Sent: Monday, May 12, 2003 11:06 PM Subject: RE: Mod_JK2 and 503 ErrorDocument > > Hi Tony, > > I have already tried this in a site of mine and it sends a 302 Error > but with no "Location:" specified. The text of the page says it found a > "Internal Server Error". But I have already got a page like: > > ----- 8<----- > > Found > The document has moved here. > ----- 8<----- > > Where "here" is a link to the URL. Wget says what I reported: a 302 > error without a "Location:" specified. > > Can you show how you map the apps and other related configuration in > httpd.conf and workers2.properties? Or maybe other magic you did to the > server. :-) > > TIA; > Kraemer > > > -----Original Message----- > > From: Tony F. White [mailto:tony@worldlingo.com] > > Sent: domingo, 11 de maio de 2003 18:36 > > To: Tomcat Users List > > Subject: Re: Mod_JK2 and 503 ErrorDocument > > > > > > Hi > > > > We have managed to find a solution for now, however it is not > > 100% ideal... > > We found that if you set: > > > > noWorkerMsg=/error503.html > > noWorkerCode=302 > > > > this will cause a redirect to be sent and the vistor is sent > > to the page specified in the noWorkerMsg. > > We had to find this out by searching the source code.... > > someone should actually add this to the documentation.... > > > > Tony > > > > ----- Original Message ----- > > From: "Tony F. White" > > To: "Tomcat Users List" > > Sent: Tuesday, May 06, 2003 10:03 AM > > Subject: Re: Mod_JK2 and 503 ErrorDocument > > > > > > > Surely someone has come accross this problem. > > > > > > ----- Original Message ----- > > > From: "Tony F. White" > > > To: > > > Sent: Tuesday, April 29, 2003 3:08 PM > > > Subject: Mod_JK2 and 503 ErrorDocument > > > > > > > > > > Hi, > > > > > > > > I was wondering if anyone has had problems with getting a > > custom 503 ErrorDocument to work for when the the tomcat server is > > full > > > or > > > > offline? We have one for 500 - Internal Server Error and > > it works fine but when a 503 occurs we get the ugly generic 503 error > > > > message along with a message stating > > > > > > > > "Additionally, a 500 Internal Server Error error was > > encountered while trying to use an ErrorDocument to handle > > the request." > > > > > > > > What error/problem occurs we don't know as nothing is > > apart from the 503 request. Setting the loglevel to Debug > > did not help > > > > either. > > > > > > > > The way we are testing the 503 page is by shutting the > > tomcat server down and requesting a page that requires the servlet. > > > > > > > > Tony > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > > > For additional commands, e-mail: > > tomcat-user-help@jakarta.apache.org > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org