aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-09-15 11:01:59 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-09-16 08:56:24 +0200
commitecd0479d2a97860fe332c782b7a8ecdf53b99cbb (patch)
tree8df5a9752a0284c7a7496beb82cefbfa1a2fbbab /server/sonar-web/src/main
parent4d60b4a3ac9f5960b90fb6534f1c83635712c160 (diff)
downloadsonarqube-ecd0479d2a97860fe332c782b7a8ecdf53b99cbb.tar.gz
sonarqube-ecd0479d2a97860fe332c782b7a8ecdf53b99cbb.zip
SONAR-8073 display custom html page in case of highlevel 500 error
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/web.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/web.xml b/server/sonar-web/src/main/webapp/WEB-INF/web.xml
index e0bd48e3257..ab60f08440a 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/web.xml
+++ b/server/sonar-web/src/main/webapp/WEB-INF/web.xml
@@ -91,6 +91,11 @@
<url-pattern>/*</url-pattern>
</filter-mapping>
+ <error-page>
+ <error-code>500</error-code>
+ <location>/500.html</location>
+ </error-page>
+
<servlet>
<servlet-name>static</servlet-name>
<servlet-class>org.sonar.server.plugins.StaticResourcesServlet</servlet-class>