/
server.xml
83 lines (67 loc) · 3.38 KB
/
server.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
<!-- Security listener. Documentation at /docs/config/listeners.html
<Listener className="org.apache.catalina.security.SecurityListener" />
-->
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<!-- Global JNDI resources
Documentation at /docs/jndi-resources-howto.html
-->
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<!-- scheme="https" secure="true" - means that we use external ssl termination
secure="true" proxyPort="443" scheme="https"
-->
<!-- See https://backstage.forgerock.com/docs/am/5.5/install-guide/#prepare-apache-tomcat
The URIEncoding should be set to UTF-8.
See also https://tomcat.apache.org/tomcat-8.0-doc/config/http.html.
Tomcat 8 should default this to UTF-8, but we set it just to be sure.
maxHttpHeaderSize="8192" - defaults to 8K which is sufficient for AM.
-->
<Connector port="8080" protocol="HTTP/1.1"
maxThreads="1000"
SSLEnabled="false"
connectionTimeout="20000"
URIEncoding="UTF-8"
redirectPort="8443" />
<!-- We terminate ssl externally
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
keystoreFile="/usr/local/tomcat/ssl/keystore" keystorePass="password"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
-->
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
<!--
Default Access Log
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
-->
<!-- We add %D - response time (msec) and send this to stdout. -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="/proc/self/fd"
prefix="1" suffix="" rotatable="false"
pattern="%h %l %u %t "%r" %s %b %Dms" />
</Host>
</Engine>
</Service>
</Server>