= Apache = == Shared Hosting == Shared hosting accounts can set the custom error pages for each domain in the members section [[https://www.kattare.com/members/domains_main.kvws|here]]. == Dedicated Servers == Apache 2.2 documentation on error pages can be found [[http://httpd.apache.org/docs/2.2/mod/core.html#errordocument|here]]. Apache 2.4 documentation on error pages can be found [[http://httpd.apache.org/docs/2.4/mod/core.html#errordocument|here]] = Tomcat = Error pages are defined in $CATALINA_HOME/conf/web.xml . If you have a multi instance install this can also be set in $CATALINA_BASE/conf/web.xml. Error pages can also be set on a an application level. Tomcat versions before Tomcat 7 need to define a page for each response code like follows. {{{ 401 /401.html 403 /403.html 404 /404.html 500 /500.html 503 /503.html }}} Starting with Tomcat 7 (Servlet 3.0) you can specify a catch-all error if desired. {{{ /generic-error.html }}} ---- CategoryHtmlProgramming CategoryJava