|
24 | 24 | <!-- Security listener. Documentation at /docs/config/listeners.html
|
25 | 25 | <Listener className="org.apache.catalina.security.SecurityListener" />
|
26 | 26 | -->
|
27 |
| - <!-- APR library loader. Documentation at /docs/apr.html --> |
28 |
| - <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> |
| 27 | + <!-- OpenSSL support using Tomcat Native --> |
| 28 | + <Listener className="org.apache.catalina.core.AprLifecycleListener" /> |
| 29 | + <!-- OpenSSL support using FFM API from Java 22 --> |
| 30 | + <!-- <Listener className="org.apache.catalina.core.OpenSSLLifecycleListener" /> --> |
29 | 31 | <!-- Prevent memory leaks due to use of particular java/javax APIs-->
|
30 | 32 | <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
|
31 | 33 | <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
|
|
61 | 63 |
|
62 | 64 | <!-- A "Connector" represents an endpoint by which requests are received
|
63 | 65 | and responses are returned. Documentation at :
|
64 |
| - Java HTTP Connector: /docs/config/http.html |
65 |
| - Java AJP Connector: /docs/config/ajp.html |
66 |
| - APR (HTTP/AJP) Connector: /docs/apr.html |
| 66 | + HTTP Connector: /docs/config/http.html |
| 67 | + AJP Connector: /docs/config/ajp.html |
67 | 68 | Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
|
68 | 69 | -->
|
| 70 | + |
69 | 71 | <Connector port="8080" protocol="HTTP/1.1"
|
70 | 72 | connectionTimeout="20000"
|
71 |
| - redirectPort="8443" /> |
| 73 | + redirectPort="8443" |
| 74 | + maxParameterCount="1000" |
| 75 | + /> |
| 76 | + |
72 | 77 | <!-- A "Connector" using the shared thread pool-->
|
73 | 78 | <!--
|
74 | 79 | <Connector executor="tomcatThreadPool"
|
75 | 80 | port="8080" protocol="HTTP/1.1"
|
76 | 81 | connectionTimeout="20000"
|
77 |
| - redirectPort="8443" /> |
| 82 | + redirectPort="8443" |
| 83 | + maxParameterCount="1000" |
| 84 | + /> |
78 | 85 | -->
|
79 |
| - <!-- Define an SSL/TLS HTTP/1.1 Connector on port 8443 |
| 86 | + <!-- Define an SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2 |
80 | 87 | This connector uses the NIO implementation. The default
|
81 | 88 | SSLImplementation will depend on the presence of the APR/native
|
82 | 89 | library and the useOpenSSL attribute of the AprLifecycleListener.
|
|
85 | 92 | -->
|
86 | 93 | <!--
|
87 | 94 | <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
|
88 |
| - maxThreads="150" SSLEnabled="true"> |
89 |
| - <SSLHostConfig> |
90 |
| - <Certificate certificateKeystoreFile="conf/localhost-rsa.jks" |
91 |
| - type="RSA" /> |
92 |
| - </SSLHostConfig> |
93 |
| - </Connector> |
94 |
| - --> |
95 |
| - <!-- Define an SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2 |
96 |
| - This connector uses the APR/native implementation which always uses |
97 |
| - OpenSSL for TLS. |
98 |
| - Either JSSE or OpenSSL style configuration may be used. OpenSSL style |
99 |
| - configuration is used below. |
100 |
| - --> |
101 |
| - <!-- |
102 |
| - <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol" |
103 |
| - maxThreads="150" SSLEnabled="true" > |
| 95 | + maxThreads="150" SSLEnabled="true" |
| 96 | + maxParameterCount="1000" |
| 97 | + > |
104 | 98 | <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
|
105 | 99 | <SSLHostConfig>
|
106 |
| - <Certificate certificateKeyFile="conf/localhost-rsa-key.pem" |
107 |
| - certificateFile="conf/localhost-rsa-cert.pem" |
108 |
| - certificateChainFile="conf/localhost-rsa-chain.pem" |
109 |
| - type="RSA" /> |
| 100 | + <Certificate certificateKeystoreFile="conf/localhost-rsa.jks" |
| 101 | + certificateKeystorePassword="changeit" type="RSA" /> |
110 | 102 | </SSLHostConfig>
|
111 | 103 | </Connector>
|
112 | 104 | -->
|
113 | 105 |
|
114 | 106 | <!-- Define an AJP 1.3 Connector on port 8009 -->
|
115 |
| - |
116 | 107 | <Connector protocol="AJP/1.3"
|
117 | 108 | address="0.0.0.0"
|
118 | 109 | port="8009"
|
119 |
| - secretRequired="false" |
120 |
| - redirectPort="8443" /> |
| 110 | + enableLookups="true" |
| 111 | + redirectPort="8443" |
| 112 | + secretRequired="false" |
| 113 | + /> |
121 | 114 |
|
122 | 115 | <!-- An Engine represents the entry point (within Catalina) that processes
|
123 | 116 | every request. The Engine implementation for Tomcat stand alone
|
|
0 commit comments