Nav apraksta

server.xml 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  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. --><!-- Note: A "Server" is not itself a "Container", so you may not
  16. define subcomponents such as "Valves" at this level.
  17. Documentation at /docs/config/server.html
  18. --><Server port="8006" shutdown="SHUTDOWN">
  19. <Listener className="org.apache.catalina.startup.VersionLoggerListener"/>
  20. <!-- Security listener. Documentation at /docs/config/listeners.html
  21. <Listener className="org.apache.catalina.security.SecurityListener" />
  22. -->
  23. <!-- APR library loader. Documentation at /docs/apr.html -->
  24. <Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/>
  25. <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  26. <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
  27. <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
  28. <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>
  29. <!-- Global JNDI resources
  30. Documentation at /docs/jndi-resources-howto.html
  31. -->
  32. <GlobalNamingResources>
  33. <!-- Editable user database that can also be used by
  34. UserDatabaseRealm to authenticate users
  35. -->
  36. <Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>
  37. </GlobalNamingResources>
  38. <!-- A "Service" is a collection of one or more "Connectors" that share
  39. a single "Container" Note: A "Service" is not itself a "Container",
  40. so you may not define subcomponents such as "Valves" at this level.
  41. Documentation at /docs/config/service.html
  42. -->
  43. <Service name="Catalina">
  44. <!--The connectors can use a shared executor, you can define one or more named thread pools-->
  45. <!--
  46. <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
  47. maxThreads="150" minSpareThreads="4"/>
  48. -->
  49. <!-- A "Connector" represents an endpoint by which requests are received
  50. and responses are returned. Documentation at :
  51. Java HTTP Connector: /docs/config/http.html
  52. Java AJP Connector: /docs/config/ajp.html
  53. APR (HTTP/AJP) Connector: /docs/apr.html
  54. Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
  55. -->
  56. <Connector connectionTimeout="20000" maxParameterCount="1000" port="8082" protocol="HTTP/1.1"/>
  57. <!-- A "Connector" using the shared thread pool-->
  58. <!--
  59. <Connector executor="tomcatThreadPool"
  60. port="8080" protocol="HTTP/1.1"
  61. connectionTimeout="20000"
  62. redirectPort="8443"
  63. maxParameterCount="1000"
  64. />
  65. -->
  66. <!-- Define an SSL/TLS HTTP/1.1 Connector on port 8443
  67. This connector uses the NIO implementation. The default
  68. SSLImplementation will depend on the presence of the APR/native
  69. library and the useOpenSSL attribute of the AprLifecycleListener.
  70. Either JSSE or OpenSSL style configuration may be used regardless of
  71. the SSLImplementation selected. JSSE style configuration is used below.
  72. -->
  73. <!--
  74. <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
  75. maxThreads="150" SSLEnabled="true"
  76. maxParameterCount="1000"
  77. >
  78. <SSLHostConfig>
  79. <Certificate certificateKeystoreFile="conf/localhost-rsa.jks"
  80. certificateKeystorePassword="changeit" type="RSA" />
  81. </SSLHostConfig>
  82. </Connector>
  83. -->
  84. <!-- Define an SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2
  85. This connector uses the APR/native implementation which always uses
  86. OpenSSL for TLS.
  87. Either JSSE or OpenSSL style configuration may be used. OpenSSL style
  88. configuration is used below.
  89. -->
  90. <!--
  91. <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
  92. maxThreads="150" SSLEnabled="true"
  93. maxParameterCount="1000"
  94. >
  95. <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
  96. <SSLHostConfig>
  97. <Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
  98. certificateFile="conf/localhost-rsa-cert.pem"
  99. certificateChainFile="conf/localhost-rsa-chain.pem"
  100. type="RSA" />
  101. </SSLHostConfig>
  102. </Connector>
  103. -->
  104. <!-- Define an AJP 1.3 Connector on port 8009 -->
  105. <!--
  106. <Connector protocol="AJP/1.3"
  107. address="::1"
  108. port="8009"
  109. redirectPort="8443"
  110. maxParameterCount="1000"
  111. />
  112. -->
  113. <!-- An Engine represents the entry point (within Catalina) that processes
  114. every request. The Engine implementation for Tomcat stand alone
  115. analyzes the HTTP headers included with the request, and passes them
  116. on to the appropriate Host (virtual host).
  117. Documentation at /docs/config/engine.html -->
  118. <!-- You should set jvmRoute to support load-balancing via AJP ie :
  119. <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
  120. -->
  121. <Engine defaultHost="localhost" name="Catalina">
  122. <!--For clustering, please take a look at documentation at:
  123. /docs/cluster-howto.html (simple how to)
  124. /docs/config/cluster.html (reference documentation) -->
  125. <!--
  126. <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
  127. -->
  128. <!-- Use the LockOutRealm to prevent attempts to guess user passwords
  129. via a brute-force attack -->
  130. <Realm className="org.apache.catalina.realm.LockOutRealm">
  131. <!-- This Realm uses the UserDatabase configured in the global JNDI
  132. resources under the key "UserDatabase". Any edits
  133. that are performed against this UserDatabase are immediately
  134. available for use by the Realm. -->
  135. <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
  136. </Realm>
  137. <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
  138. <!-- SingleSignOn valve, share authentication between web applications
  139. Documentation at: /docs/config/valve.html -->
  140. <!--
  141. <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
  142. -->
  143. <!-- Access log processes all example.
  144. Documentation at: /docs/config/valve.html
  145. Note: The pattern used is equivalent to using pattern="common" -->
  146. <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="localhost_access_log" suffix=".txt"/>
  147. </Host>
  148. </Engine>
  149. </Service>
  150. </Server>