|
19 | 19 | define subcomponents such as "Valves" at this level. |
20 | 20 | Documentation at /docs/config/server.html |
21 | 21 | --> |
22 | | -<Server port="8005" shutdown="SHUTDOWN" address="tomcat_address" portOffset="port_offset"> |
| 22 | +<Server port="tomcat_shutdown_port" shutdown="SHUTDOWN" address="tomcat_address" portOffset="port_offset"> |
23 | 23 | <Listener className="org.jboss.modcluster.container.tomcat.ModClusterListener" |
24 | | - connectorPort="8080" |
| 24 | + connectorPort="tomcat_port" |
25 | 25 | proxyList="proxy_address:proxy_port" /> |
26 | 26 | <Listener className="org.apache.catalina.startup.VersionLoggerListener" /> |
27 | | - <!-- Security listener. Documentation at /docs/config/listeners.html |
28 | | - <Listener className="org.apache.catalina.security.SecurityListener" /> |
29 | | - --> |
| 27 | + |
30 | 28 | <!--APR library loader. Documentation at /docs/apr.html --> |
31 | 29 | <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> |
32 | 30 | <!-- Prevent memory leaks due to use of particular java/javax APIs--> |
|
55 | 53 | --> |
56 | 54 | <Service name="Catalina"> |
57 | 55 |
|
58 | | - <!--The connectors can use a shared executor, you can define one or more named thread pools--> |
59 | | - <!-- |
60 | | - <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" |
61 | | - maxThreads="150" minSpareThreads="4"/> |
62 | | - --> |
63 | | - |
64 | 56 |
|
65 | | - <!-- A "Connector" represents an endpoint by which requests are received |
66 | | - and responses are returned. Documentation at : |
67 | | - Java HTTP Connector: /docs/config/http.html |
68 | | - Java AJP Connector: /docs/config/ajp.html |
69 | | - APR (HTTP/AJP) Connector: /docs/apr.html |
70 | | - Define a non-SSL/TLS HTTP/1.1 Connector on port 8080 |
71 | | - --> |
72 | | - <Connector port="8080" protocol="HTTP/1.1" |
| 57 | + <Connector port="tomcat_port" protocol="HTTP/1.1" |
73 | 58 | address="tomcat_address" |
74 | 59 | connectionTimeout="20000" |
75 | | - redirectPort="8443" |
76 | 60 | portOffset="port_offset" /> |
77 | | - <!-- 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 an 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 an 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 | | - --> |
119 | 61 |
|
120 | 62 | <!-- Define an AJP 1.3 Connector on port 8900 --> |
121 | 63 |
|
122 | 64 | <Connector protocol="AJP/1.3" |
123 | 65 | address="tomcat_address" |
124 | | - port="8900" |
| 66 | + port="tomcat_ajp_port" |
125 | 67 | secretRequired="false" |
126 | | - redirectPort="8443" |
127 | 68 | portOffset="port_offset" /> |
128 | 69 |
|
129 | 70 |
|
|
156 | 97 | resourceName="UserDatabase"/> |
157 | 98 | </Realm> |
158 | 99 |
|
159 | | - <Host name="localhost" appBase="webapps" |
| 100 | + <Host name="tomcat_address" appBase="webapps" |
160 | 101 | unpackWARs="true" autoDeploy="true"> |
161 | 102 |
|
162 | | - <!-- SingleSignOn valve, share authentication between web applications |
163 | | - Documentation at: /docs/config/valve.html --> |
164 | | - <!-- |
165 | | - <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> |
166 | | - --> |
167 | | - |
168 | 103 | <!-- Access log processes all example. |
169 | 104 | Documentation at: /docs/config/valve.html |
170 | 105 | Note: The pattern used is equivalent to using pattern="common" --> |
|
0 commit comments