Re: Turn off Tomcat Version on 404 error.

2007-03-14 Thread Susan Richards
Thanks.  I was hoping there was a way to just turn it off and not have a custom 
error page.

>>> Darren <[EMAIL PROTECTED]> 3/14/2007 5:14 AM >>>
For just 404 you can create your own page as another poster advised.   
If you want to do this for all error/code pages, take a look part way  
down the common section of this article.

http://www.owasp.org/index.php/Securing_tomcat#Common 

On 13 Mar 2007, at 20:58, Susan Richards wrote:

> How does one prevent Tomcat from displaying the Tomcat version in  
> the 404 not found page?


-
To start a new topic, e-mail: users@tomcat.apache.org 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



Re: Turn off Tomcat Version on 404 error.

2007-03-14 Thread Darren
For just 404 you can create your own page as another poster advised.   
If you want to do this for all error/code pages, take a look part way  
down the common section of this article.


http://www.owasp.org/index.php/Securing_tomcat#Common

On 13 Mar 2007, at 20:58, Susan Richards wrote:

How does one prevent Tomcat from displaying the Tomcat version in  
the 404 not found page?



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Turn off Tomcat Version on 404 error.

2007-03-13 Thread Rashmi Rubdi
Custom 404 error pages can be specified in Tomcat's web.xml file located under 
TomcatFolder\conf\

Add the following to the web.xml:


  
 404
 /web/not_found_404.jsp


I've also seen this in some project's web.xml , instead of Tomcat's web.xml - 
but haven't tested it.

Some common mistakes to avoid :

- Don't name the error page with a number , for example don't name it with 
404error.jsp - as JSPs get transformed into Servlets , and Java class names
  can't begin with numbers. 

- The order of appearance matters, so place the above error-page tag , after 
the last servlet-mapping xml node.

-Rashmi

- Original Message 
From: Susan Richards <[EMAIL PROTECTED]>
To: users@tomcat.apache.org
Sent: Tuesday, March 13, 2007 4:58:45 PM
Subject: Turn off Tomcat Version on 404 error.


How does one prevent Tomcat from displaying the Tomcat version in the 404 not 
found page?


 

Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Turn off Tomcat Version on 404 error.

2007-03-13 Thread Susan Richards
How does one prevent Tomcat from displaying the Tomcat version in the 404 not 
found page?