blob: f4640747698f9a0077de9c7c98e0a4ddb84f10e3 [file] [log] [blame]
Sylvain Desbureauxe6a1a372021-02-25 18:07:55 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!-- {{/*
3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to You under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License. You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16<!-- Note: A "Server" is not itself a "Container", so you may not
17 define subcomponents such as "Valves" at this level.
18 Documentation at /docs/config/server.html
19*/}} -->
20
21<Server port="8005" shutdown="SHUTDOWN">
22 <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
23 <!-- Security listener. Documentation at /docs/config/listeners.html
24 <Listener className="org.apache.catalina.security.SecurityListener" />
25 -->
26 <!--APR library loader. Documentation at /docs/apr.html -->
Andreas Geisslerc20e4dc2023-03-20 17:56:12 +010027 <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="off" />
Sylvain Desbureauxe6a1a372021-02-25 18:07:55 +010028 <!-- Prevent memory leaks due to use of particular java/javax APIs-->
29 <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
30 <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
31 <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
32
33 <!-- Global JNDI resources
34 Documentation at /docs/jndi-resources-howto.html
35 -->
36 <GlobalNamingResources>
37 <!-- Editable user database that can also be used by
38 UserDatabaseRealm to authenticate users
39 -->
40 <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" />
41 </GlobalNamingResources>
42
43 <!-- A "Service" is a collection of one or more "Connectors" that share
44 a single "Container" Note: A "Service" is not itself a "Container",
45 so you may not define subcomponents such as "Valves" at this level.
46 Documentation at /docs/config/service.html
47 -->
48 <Service name="Catalina">
49
50 <!--The connectors can use a shared executor, you can define one or more named thread pools-->
51 <!--
52 <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
53 maxThreads="150" minSpareThreads="4"/>
54 -->
55
56
57 <!-- A "Connector" represents an endpoint by which requests are received
58 and responses are returned. Documentation at :
59 Java HTTP Connector: /docs/config/http.html
60 Java AJP Connector: /docs/config/ajp.html
61 APR (HTTP/AJP) Connector: /docs/apr.html
62 Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
63 -->
Andreas Geissler22f3b162023-02-07 13:10:01 +010064 <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" />
Sylvain Desbureauxe6a1a372021-02-25 18:07:55 +010065
66 <!-- A "Connector" using the shared thread pool-->
67 <!--
68 <Connector executor="tomcatThreadPool"
69 port="8080" protocol="HTTP/1.1"
70 connectionTimeout="20000"
71 redirectPort="8443" />
72 -->
73 <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
74 This connector uses the NIO implementation. The default
75 SSLImplementation will depend on the presence of the APR/native
76 library and the useOpenSSL attribute of the
77 AprLifecycleListener.
78 Either JSSE or OpenSSL style configuration may be used regardless of
79 the SSLImplementation selected. JSSE style configuration is used below.
80 -->
81 <!--
82 <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
83 maxThreads="150" SSLEnabled="true">
84 <SSLHostConfig>
85 <Certificate certificateKeystoreFile="conf/localhost-rsa.jks"
86 type="RSA" />
87 </SSLHostConfig>
88 </Connector>
89 -->
90 <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2
91 This connector uses the APR/native implementation which always uses
92 OpenSSL for TLS.
93 Either JSSE or OpenSSL style configuration may be used. OpenSSL style
94 configuration is used below.
95 -->
96 <!--
97 <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
98 maxThreads="150" SSLEnabled="true" >
99 <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
100 <SSLHostConfig>
101 <Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
102 certificateFile="conf/localhost-rsa-cert.pem"
103 certificateChainFile="conf/localhost-rsa-chain.pem"
104 type="RSA" />
105 </SSLHostConfig>
106 </Connector>
107 -->
108
109 <!-- Define an AJP 1.3 Connector on port 8009 -->
Andreas Geissler22f3b162023-02-07 13:10:01 +0100110 <Connector port="8009" protocol="AJP/1.3" secretRequired="false" />
Sylvain Desbureauxe6a1a372021-02-25 18:07:55 +0100111
112 <!-- An Engine represents the entry point (within Catalina) that processes
113 every request. The Engine implementation for Tomcat stand alone
114 analyzes the HTTP headers included with the request, and passes them
115 on to the appropriate Host (virtual host).
116 Documentation at /docs/config/engine.html -->
117
118 <!-- You should set jvmRoute to support load-balancing via AJP ie :
119 <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
120 -->
121 <Engine name="Catalina" defaultHost="localhost">
122
123 <!--For clustering, please take a look at documentation at:
124 /docs/cluster-howto.html (simple how to)
125 /docs/config/cluster.html (reference documentation) -->
126 <!--
127 <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
128 -->
129
130 <!-- Use the LockOutRealm to prevent attempts to guess user passwords
131 via a brute-force attack -->
132 <Realm className="org.apache.catalina.realm.LockOutRealm">
133 <!-- This Realm uses the UserDatabase configured in the global JNDI
134 resources under the key "UserDatabase". Any edits
135 that are performed against this UserDatabase are immediately
136 available for use by the Realm. -->
137 <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" />
138 </Realm>
139
140 <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
141
142 <!-- SingleSignOn valve, share authentication between web applications
143 Documentation at: /docs/config/valve.html -->
144 <!--
145 <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
146 -->
147
148 <!-- Access log processes all example.
149 Documentation at: /docs/config/valve.html
150 Note: The pattern used is equivalent to using pattern="common" -->
151 <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b" />
152
153 </Host>
154 </Engine>
155 </Service>
156</Server>