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 |
Take a look here. You have to write your own 404 html page and put the correct path as explained in the FAQ.
|
Quote:
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 ! |
You're welcome! :)
|
All times are GMT -5. The time now is 04:42 PM. |