On 24/09/2021 11:56, Jan Pernica wrote:
Hi

how can I easly create error page for the whole server? Curretly if I add to conf/web.xml
     <error-page>
         <error-code>500</error-code>
         <location>/error/error.html</location>
     </error-page>
     <error-page>
         <error-code>404</error-code>
         <location>/error/error.html</location>
     </error-page>
And put into webapps/ROOT/error/error.html page it works only for ROOT context. Other contexts shows empty page. I have to propagate error page into all contexts.

How to do it in one step?

http://tomcat.apache.org/tomcat-10.0-doc/config/valve.html#Error_Report_Valve/Attributes

Mark

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

Reply via email to