Re: Custom Error page when Tomcat is down?

2006-07-24 Thread Hassan Schroeder
On 7/24/06, Eric B. <[EMAIL PROTECTED]> wrote: > 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. OK, simplest test: I took a standalo

Subject: Re: Custom Error page when Tomcat is down?

2006-07-24 Thread Edmon Begoli
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

Re: Custom Error page when Tomcat is down?

2006-07-24 Thread Eric B.
"Hassan Schroeder" <[EMAIL PROTECTED]> wrote in message > On 7/24/06, Eric B. <[EMAIL PROTECTED]> 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

Re: Custom Error page when Tomcat is down?

2006-07-24 Thread Christopher Schultz
Eric, > I've been scouring the docs & newsgroups for the last hour or so, and have > been unable to find a solution to my problem. Currently, I have tomcat > being access through the Apache httpd server, configured via the jk_mod > connector/module. I have the same setup, and just use "ErrorD

Re: Custom Error page when Tomcat is down?

2006-07-24 Thread Hassan Schroeder
On 7/24/06, Eric B. <[EMAIL PROTECTED]> 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. -- Hassan Schr

Re: Custom Error page when Tomcat is down?

2006-07-24 Thread Eric B.
"Hassan Schroeder" <[EMAIL PROTECTED]> wrote in message > >> Is there any way I can customize that error page to say/show something >> different? > > See the Apache doc for "ErrorDocument" Thanks for the pointer, but the problem that I see is that Apache is returning the status code 200 to the b

Re: Custom Error page when Tomcat is down?

2006-07-24 Thread Hassan Schroeder
On 7/24/06, Eric B. <[EMAIL PROTECTED]> wrote: Is there any way I can customize that error page to say/show something different? See the Apache doc for "ErrorDocument" -- Hassan Schroeder [EMAIL PROTECTED] -

Re: Custom error page when ...

2005-10-24 Thread Seak, Teng-Fong
result for every web application? > >Thanks. >Roberto. > >- Original Message - >From: "Chris Birch" <[EMAIL PROTECTED]> >To: "Tomcat Users List" >Sent: Saturday, October 22, 2005 12:59 PM >Subject: Re: Custom error page when ... > >

Re: Custom error page when ...

2005-10-24 Thread Roberto Bottoni - AfterBit
Ok.. but if I make this change in web.xml in folder /conf of Tomcat I get the same result for every web application? Thanks. Roberto. - Original Message - From: "Chris Birch" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, October 22, 2005 12:59 PM

Re: Custom error page when ...

2005-10-22 Thread Chris Birch
You can add pages for HTTP response codes to you web.xml file for each web application you deploy within Tomcat. Add the following to your web.xml file after and before declarations: 404 /pages/error.jsp Regards, Chris. On 22 Oct 2005, at