On 22/03/2011 15:07, Caldarale, Charles R wrote:
>> From: Jonathan Rosenberg [mailto:shmol...@gmail.com] 
>> Subject: Global Default Error Page
> 
>> How can I create a custom 404 error page for the case where 
>> the URL maps to a non-existent webapp?
> 
> *All* URLs map to a webapp, even if it's the default (ROOT) one.  Put your 
> custom error page in ROOT.

That is the simple option.

You can also use a custom error reporting valve ( see
errorReportValveClass in
http://tomcat.apache.org/tomcat-7.0-doc/config/host.html). It has the
advantage of applying to all web applications deployed in a host but is
more complicated to set up.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to