tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Neville <james.nevi...@babcockbrown.com>
Subject Re: Stop displaying version info
Date Thu, 22 Jan 2004 12:00:49 GMT
Allan Bruce wrote:

>Is there a way I can get tomcat to stop displaying so much info if somebody
>hits a 404 or other error?
>
Stick something like this in your web.xml file.

<error-page>
    <error-code>500</error-code>
        <location>/500.html</location>
    </error-page>
    <error-page>
        <error-code>404</error-code>
        <location>/400.html</location>
    </error-page>   



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message