The <location> element is relative to the root of the web app - that is, you can only specify an error page within the same web app.
There's a trick described here: http://marc.theaimsgroup.com/?l=tomcat-user&m=104160348302968 that uses a small .jsp that includes the Apache error page. Since you want the error page to come from outside of Tomcat the import command should look something like this: <c:import url="http://www.luc.com/error/404.html"/> That approach doesn't look very efficient because it's doing an http request to get the error page from the same server. An alternative would be to write a JSP page that emulates the Apache error pages. -- Len On 10/24/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi fellow listers, > > > I'm on TC 5.5.9 behind Apache 2.0.54 and I need TC to display the same error > pages as in Apache. So, I've put the following code in > CATALINA_HOME/conf/web.xml : > > --------------------------------------------------------------------------- > > <error-page> > <error-code>503</error-code> > <location>/erreur/erreur-500.html</location> > </error-page> > > --------------------------------------------------------------------------- > > Of course, since I'm asking this list, Tomcat continues to dosplay it's own > error pages (you know, the blue ugly ones...) Anyways, the > 'erreur/erreur-500.html' page is inside the Apache htdocs folder and they > don't get displayed... any idea ?? > > > > ____________________________ > Luc Boudreau > SID - Université du Québec > [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]