LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-14-2009, 04:27 AM   #1
simon.unix
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Rep: Reputation: 0
Red face Replacing Tomcat Error page 404 , 504


Hi ,
I have problem with Tomcat 6.0.18
- I do not want to show my Server information like tomcat version
- During typing URL , use get 404 not found page , can i configure to get more friendly error page for all of errors and my web application
THanks
Simon
 
Old 04-14-2009, 04:38 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,452

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Take a look here. You have to write your own 404 html page and put the correct path as explained in the FAQ.
 
Old 04-15-2009, 04:28 AM   #3
simon.unix
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colucix View Post
Take a look here. You have to write your own 404 html page and put the correct path as explained in the FAQ.
Ok , thanks , it had been done :
What i did :
- Create a 404.html file in ./webapps/myporject/404.html
- Vi /usr/loca/tomcat/conf/server.xml
Put this content :
<error-page>
<error-code>404</error-code>
<location>404.html</location>
</error-page>

- Restart tomcat

Thanks Colucix !
 
Old 04-15-2009, 04:34 AM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,452

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
You're welcome!
 
  


Reply

Tags
error, tomcat


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The dreaded status 404 error on Tomcat... rtoney5 Linux - Software 2 12-19-2008 02:23 PM
how to modify ERROR 404 (html) and put my own page?? mandriva 2006 ssarrinah Mandriva 2 06-04-2008 07:26 PM
LXer: Build 404 error page CGI handler brains LXer Syndicated Linux News 0 09-16-2007 03:51 PM
404 Error Page Not Working newlinuxnewbie Linux - Server 3 09-06-2006 06:52 PM
404 error using JSP on tomcat jayn16 Programming 2 06-25-2006 01:07 PM


All times are GMT -5. The time now is 02:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration