web.xml
[engineDir]/configuration/reference/web.xml
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ========================================================================
4 Configures the embedded Tomcat Webserver of Axon Ivy
5 ========================================================================
6
7 This file shows the default configuration of the the embedded Tomcat Webserver.
8
9 Copy contents of this reference file to 'configuration/web.xml' before adjusting
10 them to your needs. Changing this file has no effect.
11
12 See apache tomcat documentation for more information about this configuration:
13 http://tomcat.apache.org/tomcat-9.0-doc/config/
14
15 After a change in the web.xml a restart of Axon Ivy is required
16 to apply the new configuration.
17-->
18<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
21 http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
22 version="4.0">
23
24 <!-- ======================= Error pages ================================ -->
25 <!--
26 Custom error pages can be added with error-page elements.
27 The referenced error-page must be placed in the folder 'webapps/ivy'.
28 Use /faces location-prefix for xhtml pages.
29
30 The pre-configured default error page is:
31 -->
32 <error-page>
33 <location>/faces/ivy-error-page.xhtml</location>
34 </error-page>
35 <!--
36 By adding the <exception-type> tag to the <error-page> configuration
37 it is also possible to configure a specific error page for status codes
38 or kind of exceptions:
39
40 <error-page>
41 <exception-type>java.lang.Throwable</exception-type>
42 <location>/faces/custom-exception-error-page.xhtml</location>
43 </error-page>
44 <error-page>
45 <error-code>404</error-code>
46 <location>/faces/custom-404-error-page.xhtml</location>
47 </error-page>
48
49 Implementation:
50 Use the 'ErrorPageMBean' to retrieve information about the thrown exception and the environment:
51 @doc.url.current@/public-api/ch/ivyteam/ivy/webserver/ErrorPageMBean.html
52 -->
53
54 <!-- ==================== Default Session Configuration ================= -->
55 <!--
56 cookie-config/secure: [default=false]
57
58 Enable the secure flag when accessing the Webserver over HTTPS (strongly recommended).
59 When enabled the session cookie is only transmitted over HTTPS and not over HTTP.
60 -->
61 <!--
62 <session-config>
63 <cookie-config>
64 <secure>true</secure>
65 </cookie-config>
66 </session-config>
67 -->
68
69</web-app>