diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-09-15 11:01:59 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-09-16 08:56:24 +0200 |
commit | ecd0479d2a97860fe332c782b7a8ecdf53b99cbb (patch) | |
tree | 8df5a9752a0284c7a7496beb82cefbfa1a2fbbab /server/sonar-web/src/main | |
parent | 4d60b4a3ac9f5960b90fb6534f1c83635712c160 (diff) | |
download | sonarqube-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.xml | 5 |
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> |