|
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 | 20 | Documentation at /docs/config/server.html
|
21 | 21 | -->
|
22 | 22 | <Server port="9005" shutdown="SHUTDOWN">
|
23 |
| - <Listener className="org.apache.catalina.startup.VersionLoggerListener" /> |
24 | 23 | <!-- Security listener. Documentation at /docs/config/listeners.html
|
25 | 24 | <Listener className="org.apache.catalina.security.SecurityListener" />
|
26 | 25 | -->
|
27 | 26 | <!--APR library loader. Documentation at /docs/apr.html -->
|
28 | 27 | <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
|
| 28 | + <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --> |
| 29 | + <Listener className="org.apache.catalina.core.JasperListener" /> |
29 | 30 | <!-- Prevent memory leaks due to use of particular java/javax APIs-->
|
30 | 31 | <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
|
31 | 32 | <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
|
|
61 | 62 |
|
62 | 63 | <!-- A "Connector" represents an endpoint by which requests are received
|
63 | 64 | and responses are returned. Documentation at :
|
64 |
| - Java HTTP Connector: /docs/config/http.html |
| 65 | + Java HTTP Connector: /docs/config/http.html (blocking & non-blocking) |
65 | 66 | Java AJP Connector: /docs/config/ajp.html
|
66 | 67 | APR (HTTP/AJP) Connector: /docs/apr.html
|
67 |
| - Define a non-SSL/TLS HTTP/1.1 Connector on port 8080 |
| 68 | + Define a non-SSL HTTP/1.1 Connector on port 8080 |
68 | 69 | -->
|
69 | 70 | <Connector port="7070" protocol="HTTP/1.1"
|
70 | 71 | connectionTimeout="20000"
|
71 |
| - redirectPort="9443" |
| 72 | + redirectPort="7443" |
72 | 73 | compression="on"
|
73 | 74 | compressionMinSize="2048"
|
74 | 75 | noCompressionUserAgents="gozilla,traviata"
|
75 | 76 | compressableMimeType="text/html,text/xml,text/javascript,application/javascript,application/json,text/css,text/plain"
|
76 | 77 | />
|
77 | 78 | <!-- A "Connector" using the shared thread pool-->
|
78 |
| - <!-- |
79 |
| - <Connector executor="tomcatThreadPool" |
80 |
| - port="8080" protocol="HTTP/1.1" |
81 |
| - connectionTimeout="20000" |
82 |
| - redirectPort="8443" /> |
83 |
| - --> |
84 |
| - <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 |
85 |
| - This connector uses the NIO implementation. The default |
86 |
| - SSLImplementation will depend on the presence of the APR/native |
87 |
| - library and the useOpenSSL attribute of the |
88 |
| - AprLifecycleListener. |
89 |
| - Either JSSE or OpenSSL style configuration may be used regardless of |
90 |
| - the SSLImplementation selected. JSSE style configuration is used below. |
91 |
| - --> |
92 |
| - <!-- |
93 |
| - <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" |
94 |
| - maxThreads="150" SSLEnabled="true"> |
95 |
| - <SSLHostConfig> |
96 |
| - <Certificate certificateKeystoreFile="conf/localhost-rsa.jks" |
97 |
| - type="RSA" /> |
98 |
| - </SSLHostConfig> |
99 |
| - </Connector> |
100 |
| - --> |
101 |
| - <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2 |
102 |
| - This connector uses the APR/native implementation which always uses |
103 |
| - OpenSSL for TLS. |
104 |
| - Either JSSE or OpenSSL style configuration may be used. OpenSSL style |
105 |
| - configuration is used below. |
106 |
| - --> |
107 |
| - <!-- |
108 |
| - <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol" |
109 |
| - maxThreads="150" SSLEnabled="true" > |
110 |
| - <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> |
111 |
| - <SSLHostConfig> |
112 |
| - <Certificate certificateKeyFile="conf/localhost-rsa-key.pem" |
113 |
| - certificateFile="conf/localhost-rsa-cert.pem" |
114 |
| - certificateChainFile="conf/localhost-rsa-chain.pem" |
115 |
| - type="RSA" /> |
116 |
| - </SSLHostConfig> |
117 |
| - </Connector> |
118 |
| - --> |
| 79 | + <!-- Define a SSL HTTP/1.1 Connector on port 8443 |
| 80 | + This connector uses the BIO implementation that requires the JSSE |
| 81 | + style configuration. When using the APR/native implementation, the |
| 82 | + OpenSSL style configuration is required as described in the APR/native |
| 83 | + documentation --> |
| 84 | + <Connector port="7443" protocol="org.apache.coyote.http11.Http11Protocol" |
| 85 | + maxThreads="150" SSLEnabled="true" scheme="https" secure="true" |
| 86 | + keystoreFile="conf/.keystore" keystorePass="changeit" |
| 87 | + clientAuth="false" sslProtocol="TLS" /> |
119 | 88 |
|
120 | 89 | <!-- Define an AJP 1.3 Connector on port 8009 -->
|
121 | 90 | <Connector port="9009" protocol="AJP/1.3" redirectPort="9443" />
|
|
163 | 132 | Documentation at: /docs/config/valve.html
|
164 | 133 | Note: The pattern used is equivalent to using pattern="common" -->
|
165 | 134 | <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
|
166 |
| - prefix="localhost_access_log" suffix=".txt" |
| 135 | + prefix="localhost_access_log." suffix=".txt" |
167 | 136 | pattern="%h %l %u %t "%r" %s %b" />
|
168 | 137 |
|
169 | 138 | </Host>
|
|
0 commit comments