1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
3 Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 use this file except in compliance with the License. You may obtain a copy
5 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
6 by applicable law or agreed to in writing, software distributed under the
7 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
8 OF ANY KIND, either express or implied. See the License for the specific
9 language governing permissions and limitations under the License. -->
10 <Server port="8005" shutdown="SHUTDOWN">
12 className="org.apache.catalina.startup.VersionLoggerListener" />
13 <!-- Security listener. Documentation at /docs/config/listeners.html
14 <Listener className="org.apache.catalina.security.SecurityListener" /> -->
15 <!--APR library loader. Documentation at /docs/apr.html -->
17 className="org.apache.catalina.core.AprLifecycleListener"
19 <!-- Prevent memory leaks due to use of particular java/javax APIs -->
21 className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
23 className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
25 className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
27 <!-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html -->
28 <GlobalNamingResources>
29 <!-- Editable user database that can also be used by UserDatabaseRealm
30 to authenticate users -->
31 <Resource name="UserDatabase" auth="Container"
32 type="org.apache.catalina.UserDatabase"
33 description="User database that can be updated and saved"
34 factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
35 pathname="conf/tomcat-users.xml" />
36 </GlobalNamingResources>
38 <!-- A "Service" is a collection of one or more "Connectors" that share
39 a single "Container" Note: A "Service" is not itself a "Container", so you
40 may not define subcomponents such as "Valves" at this level. Documentation
41 at /docs/config/service.html -->
42 <Service name="Catalina">
44 <!--The connectors can use a shared executor, you can define one
45 or more named thread pools -->
46 <!-- <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
47 maxThreads="150" minSpareThreads="4"/> -->
50 <!-- A "Connector" represents an endpoint by which requests are received
51 and responses are returned. Documentation at : Java HTTP Connector: /docs/config/http.html
52 Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html
53 Define an SSL/TLS Connector on port 8443 for backwards compatibility-->
55 protocol="org.apache.coyote.http11.Http11NioProtocol"
56 port="8443" maxThreads="200"
57 scheme="https" secure="true" SSLEnabled="true"
58 SSLCertificateFile="/usr/local/tomcat/bluval.crt"
59 SSLCertificateKeyFile="/usr/local/tomcat/bluval.key"
60 SSLVerifyClient="none" SSLProtocol="TLSv1+TLSv1.1+TLSv1.2" />
61 <!-- A "Connector" using the shared thread pool -->
62 <!-- <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1"
63 connectionTimeout="20000" redirectPort="8443" /> -->
64 <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 This connector
65 uses the NIO implementation. The default SSLImplementation will depend on
66 the presence of the APR/native library and the useOpenSSL attribute of the
67 AprLifecycleListener. Either JSSE or OpenSSL style configuration may be used
68 regardless of the SSLImplementation selected. JSSE style configuration is
71 <!--protocol="org.apache.coyote.http11.Http11NioProtocol"
72 port="8443" maxThreads="200" scheme="https" secure="true"
73 SSLEnabled="true" keystoreFile="/usr/local/tomcat/.keystore"
74 clientAuth="false" sslProtocol="TLS" />-->
76 protocol="org.apache.coyote.http11.Http11NioProtocol"
77 port="443" maxThreads="200"
78 scheme="https" secure="true" SSLEnabled="true"
79 SSLCertificateFile="/usr/local/tomcat/bluval.crt"
80 SSLCertificateKeyFile="/usr/local/tomcat/bluval.key"
81 SSLVerifyClient="none" SSLProtocol="TLSv1+TLSv1.1+TLSv1.2"/>
82 <!-- <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
83 maxThreads="150" SSLEnabled="true"> <SSLHostConfig> <Certificate certificateKeystoreFile="conf/localhost-rsa.jks"
84 type="RSA" /> </SSLHostConfig> </Connector> -->
85 <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2
86 This connector uses the APR/native implementation which always uses OpenSSL
87 for TLS. Either JSSE or OpenSSL style configuration may be used. OpenSSL
88 style configuration is used below. -->
89 <!-- <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
90 maxThreads="150" SSLEnabled="true" > <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol"
91 /> <SSLHostConfig> <Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
92 certificateFile="conf/localhost-rsa-cert.pem" certificateChainFile="conf/localhost-rsa-chain.pem"
93 type="RSA" /> </SSLHostConfig> </Connector> -->
95 <!-- Define an AJP 1.3 Connector on port 8009 -->
96 <Connector port="8009" protocol="AJP/1.3"
100 <!-- An Engine represents the entry point (within Catalina) that
101 processes every request. The Engine implementation for Tomcat stand alone
102 analyzes the HTTP headers included with the request, and passes them on to
103 the appropriate Host (virtual host). Documentation at /docs/config/engine.html -->
105 <!-- You should set jvmRoute to support load-balancing via AJP ie
106 : <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> -->
107 <Engine name="Catalina" defaultHost="localhost">
109 <!--For clustering, please take a look at documentation at: /docs/cluster-howto.html
110 (simple how to) /docs/config/cluster.html (reference documentation) -->
111 <!-- <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> -->
113 <!-- Use the LockOutRealm to prevent attempts to guess user passwords
114 via a brute-force attack -->
116 className="org.apache.catalina.realm.LockOutRealm">
117 <!-- This Realm uses the UserDatabase configured in the global
118 JNDI resources under the key "UserDatabase". Any edits that are performed
119 against this UserDatabase are immediately available for use by the Realm. -->
121 className="org.apache.catalina.realm.UserDatabaseRealm"
122 resourceName="UserDatabase" />
125 <Host name="localhost" appBase="webapps"
126 unpackWARs="true" autoDeploy="true">
128 <!-- SingleSignOn valve, share authentication between web
129 applications Documentation at: /docs/config/valve.html -->
130 <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn"
133 <!-- Access log processes all example. Documentation at:
134 /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" -->
136 className="org.apache.catalina.valves.AccessLogValve"
137 directory="logs" prefix="localhost_access_log"
139 pattern="%h %l %u %t "%r" %s %b" />