Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 56606 invoked from network); 24 Jul 2006 22:52:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jul 2006 22:52:05 -0000 Received: (qmail 23297 invoked by uid 500); 24 Jul 2006 22:51:51 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 23274 invoked by uid 500); 24 Jul 2006 22:51:51 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 23263 invoked by uid 99); 24 Jul 2006 22:51:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 15:51:51 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ebegoli@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO py-out-1112.google.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 15:51:50 -0700 Received: by py-out-1112.google.com with SMTP id 39so2400223pyu for ; Mon, 24 Jul 2006 15:51:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=p+xHbviD0ejims4rp26ujtrcA4tegBZRtfwnC0ym71N72uXivRKcdWLYYBlDXZEqmBRnv7rE/BPVKfFdbWuz2NZxWZL6302CLQSRUJ4mScOr+idTT7VRJ4RF6gnwmZhbm4keE+wtbzkdCApf6WYlqTpD4lT8rQJSnO6/ZD6p41U= Received: by 10.35.11.15 with SMTP id o15mr8369243pyi; Mon, 24 Jul 2006 15:51:29 -0700 (PDT) Received: by 10.35.90.6 with HTTP; Mon, 24 Jul 2006 15:51:29 -0700 (PDT) Message-ID: Date: Mon, 24 Jul 2006 18:51:29 -0400 From: "Edmon Begoli" To: "Tomcat Users List" Subject: Subject: Re: Custom Error page when Tomcat is down? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_76887_22099887.1153781489676" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_76887_22099887.1153781489676 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline If you are using Apache to Tomcat try using mod_security module to accomplish this. Mod security has setting for hiding the server error output: http://www.modsecurity.org/documentation/modsecurity-apache/1.9.3/modsecurity-manual.html#N1057D as well as purposly missrepresenting the Apache (like show IIS instead of Apache). http://www.modsecurity.org/documentation/modsecurity-apache/1.9.3/modsecurity-manual.html#N108B5 > On 7/24/06, Eric B. wrote: > >> Thanks for the pointer, but the problem that I see is that Apache is >> returning the status code 200 to the browser. > > If Apache is generating an "internal server error" as you indicated, it > should be returning a 5xx status, I'd think. > I'd think so too. But I put in ErrorDocument 500 directives, and got nothing out of it. In fact, I even went one step further and put in ErrorDocument directives for error codes 500-510 (just in case I was missing something) and none made a difference. I tried putting them in the main body of the httpd.conf file (to ensure I wasn't having problems with VirtualHosts, etc), but still nothing. -- Thank you, Edmon Begoli http://blogs.ittoolbox.com/eai/software ------=_Part_76887_22099887.1153781489676--