|
@@ -1,4 +1,4 @@
|
1
|
|
-<?xml version='1.0' encoding='utf-8'?>
|
|
1
|
+<?xml version="1.0" encoding="UTF-8"?>
|
2
|
2
|
<!--
|
3
|
3
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
4
|
contributor license agreements. See the NOTICE file distributed with
|
|
@@ -20,15 +20,12 @@
|
20
|
20
|
Documentation at /docs/config/server.html
|
21
|
21
|
-->
|
22
|
22
|
<Server port="8005" shutdown="SHUTDOWN">
|
|
23
|
+ <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
|
23
|
24
|
<!-- Security listener. Documentation at /docs/config/listeners.html
|
24
|
25
|
<Listener className="org.apache.catalina.security.SecurityListener" />
|
25
|
26
|
-->
|
26
|
27
|
<!--APR library loader. Documentation at /docs/apr.html -->
|
27
|
|
- <!--
|
28
|
28
|
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
|
29
|
|
- -->
|
30
|
|
- <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
|
31
|
|
- <Listener className="org.apache.catalina.core.JasperListener" />
|
32
|
29
|
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
|
33
|
30
|
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
|
34
|
31
|
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
|
|
@@ -64,14 +61,13 @@
|
64
|
61
|
|
65
|
62
|
<!-- A "Connector" represents an endpoint by which requests are received
|
66
|
63
|
and responses are returned. Documentation at :
|
67
|
|
- Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
|
|
64
|
+ Java HTTP Connector: /docs/config/http.html
|
68
|
65
|
Java AJP Connector: /docs/config/ajp.html
|
69
|
66
|
APR (HTTP/AJP) Connector: /docs/apr.html
|
70
|
|
- Define a non-SSL HTTP/1.1 Connector on port 8080
|
|
67
|
+ Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
|
71
|
68
|
-->
|
72
|
69
|
<Connector address="127.0.0.1" port="8080" protocol="HTTP/1.1"
|
73
|
70
|
connectionTimeout="20000"
|
74
|
|
- URIEncoding="UTF-8"
|
75
|
71
|
redirectPort="8443" />
|
76
|
72
|
<!-- A "Connector" using the shared thread pool-->
|
77
|
73
|
<!--
|
|
@@ -80,15 +76,40 @@
|
80
|
76
|
connectionTimeout="20000"
|
81
|
77
|
redirectPort="8443" />
|
82
|
78
|
-->
|
83
|
|
- <!-- Define a SSL HTTP/1.1 Connector on port 8443
|
84
|
|
- This connector uses the BIO implementation that requires the JSSE
|
85
|
|
- style configuration. When using the APR/native implementation, the
|
86
|
|
- OpenSSL style configuration is required as described in the APR/native
|
87
|
|
- documentation -->
|
|
79
|
+ <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
|
|
80
|
+ This connector uses the NIO implementation. The default
|
|
81
|
+ SSLImplementation will depend on the presence of the APR/native
|
|
82
|
+ library and the useOpenSSL attribute of the
|
|
83
|
+ AprLifecycleListener.
|
|
84
|
+ Either JSSE or OpenSSL style configuration may be used regardless of
|
|
85
|
+ the SSLImplementation selected. JSSE style configuration is used below.
|
|
86
|
+ -->
|
|
87
|
+ <!--
|
|
88
|
+ <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
|
|
89
|
+ maxThreads="150" SSLEnabled="true">
|
|
90
|
+ <SSLHostConfig>
|
|
91
|
+ <Certificate certificateKeystoreFile="conf/localhost-rsa.jks"
|
|
92
|
+ type="RSA" />
|
|
93
|
+ </SSLHostConfig>
|
|
94
|
+ </Connector>
|
|
95
|
+ -->
|
|
96
|
+ <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2
|
|
97
|
+ This connector uses the APR/native implementation which always uses
|
|
98
|
+ OpenSSL for TLS.
|
|
99
|
+ Either JSSE or OpenSSL style configuration may be used. OpenSSL style
|
|
100
|
+ configuration is used below.
|
|
101
|
+ -->
|
88
|
102
|
<!--
|
89
|
|
- <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
|
90
|
|
- maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
|
91
|
|
- clientAuth="false" sslProtocol="TLS" />
|
|
103
|
+ <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
|
|
104
|
+ maxThreads="150" SSLEnabled="true" >
|
|
105
|
+ <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
|
|
106
|
+ <SSLHostConfig>
|
|
107
|
+ <Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
|
|
108
|
+ certificateFile="conf/localhost-rsa-cert.pem"
|
|
109
|
+ certificateChainFile="conf/localhost-rsa-chain.pem"
|
|
110
|
+ type="RSA" />
|
|
111
|
+ </SSLHostConfig>
|
|
112
|
+ </Connector>
|
92
|
113
|
-->
|
93
|
114
|
|
94
|
115
|
<!-- Define an AJP 1.3 Connector on port 8009 -->
|
|
@@ -139,7 +160,7 @@
|
139
|
160
|
Documentation at: /docs/config/valve.html
|
140
|
161
|
Note: The pattern used is equivalent to using pattern="common" -->
|
141
|
162
|
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
|
142
|
|
- prefix="localhost_access_log." suffix=".txt"
|
|
163
|
+ prefix="localhost_access_log" suffix=".txt"
|
143
|
164
|
pattern="%h %l %u %t "%r" %s %b" />
|
144
|
165
|
|
145
|
166
|
</Host>
|