Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

etc_tomcat6_server.xml 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <?xml version='1.0' encoding='utf-8'?>
  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. -->
  16. <!-- Note: A "Server" is not itself a "Container", so you may not
  17. define subcomponents such as "Valves" at this level.
  18. Documentation at /docs/config/server.html
  19. -->
  20. <Server port="8005" shutdown="SHUTDOWN">
  21. <!--APR library loader. Documentation at /docs/apr.html -->
  22. <!--
  23. <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  24. -->
  25. <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  26. <Listener className="org.apache.catalina.core.JasperListener" />
  27. <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  28. <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  29. <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
  30. <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  31. <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  32. <!-- Global JNDI resources
  33. Documentation at /docs/jndi-resources-howto.html
  34. -->
  35. <GlobalNamingResources>
  36. <!-- Editable user database that can also be used by
  37. UserDatabaseRealm to authenticate users
  38. -->
  39. <Resource name="UserDatabase" auth="Container"
  40. type="org.apache.catalina.UserDatabase"
  41. description="User database that can be updated and saved"
  42. factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
  43. pathname="conf/tomcat-users.xml" />
  44. </GlobalNamingResources>
  45. <!-- A "Service" is a collection of one or more "Connectors" that share
  46. a single "Container" Note: A "Service" is not itself a "Container",
  47. so you may not define subcomponents such as "Valves" at this level.
  48. Documentation at /docs/config/service.html
  49. -->
  50. <Service name="Catalina">
  51. <!--The connectors can use a shared executor, you can define one or more named thread pools-->
  52. <!--
  53. <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
  54. maxThreads="150" minSpareThreads="4"/>
  55. -->
  56. <!-- A "Connector" represents an endpoint by which requests are received
  57. and responses are returned. Documentation at :
  58. Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
  59. Java AJP Connector: /docs/config/ajp.html
  60. APR (HTTP/AJP) Connector: /docs/apr.html
  61. Define a non-SSL HTTP/1.1 Connector on port 8080
  62. -->
  63. <Connector address="127.0.0.1" port="8080" protocol="HTTP/1.1"
  64. connectionTimeout="20000"
  65. URIEncoding="UTF-8"
  66. redirectPort="8443" />
  67. <!-- A "Connector" using the shared thread pool-->
  68. <!--
  69. <Connector executor="tomcatThreadPool"
  70. port="8080" protocol="HTTP/1.1"
  71. connectionTimeout="20000"
  72. redirectPort="8443" />
  73. -->
  74. <!-- Define a SSL HTTP/1.1 Connector on port 8443
  75. This connector uses the JSSE configuration, when using APR, the
  76. connector should be using the OpenSSL style configuration
  77. described in the APR documentation -->
  78. <!--
  79. <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
  80. maxThreads="150" scheme="https" secure="true"
  81. clientAuth="false" sslProtocol="TLS" />
  82. -->
  83. <!-- Define an AJP 1.3 Connector on port 8009 -->
  84. <!--
  85. <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
  86. -->
  87. <!-- An Engine represents the entry point (within Catalina) that processes
  88. every request. The Engine implementation for Tomcat stand alone
  89. analyzes the HTTP headers included with the request, and passes them
  90. on to the appropriate Host (virtual host).
  91. Documentation at /docs/config/engine.html -->
  92. <!-- You should set jvmRoute to support load-balancing via AJP ie :
  93. <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
  94. -->
  95. <Engine name="Catalina" defaultHost="localhost">
  96. <!--For clustering, please take a look at documentation at:
  97. /docs/cluster-howto.html (simple how to)
  98. /docs/config/cluster.html (reference documentation) -->
  99. <!--
  100. <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
  101. -->
  102. <!-- The request dumper valve dumps useful debugging information about
  103. the request and response data received and sent by Tomcat.
  104. Documentation at: /docs/config/valve.html -->
  105. <!--
  106. <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
  107. -->
  108. <!-- This Realm uses the UserDatabase configured in the global JNDI
  109. resources under the key "UserDatabase". Any edits
  110. that are performed against this UserDatabase are immediately
  111. available for use by the Realm. -->
  112. <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
  113. resourceName="UserDatabase"/>
  114. <!-- Define the default virtual host
  115. Note: XML Schema validation will not work with Xerces 2.2.
  116. -->
  117. <Host name="localhost" appBase="webapps"
  118. unpackWARs="true" autoDeploy="true"
  119. xmlValidation="false" xmlNamespaceAware="false">
  120. <!-- SingleSignOn valve, share authentication between web applications
  121. Documentation at: /docs/config/valve.html -->
  122. <!--
  123. <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
  124. -->
  125. <!-- Access log processes all example.
  126. Documentation at: /docs/config/valve.html -->
  127. <!--
  128. <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
  129. prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
  130. -->
  131. </Host>
  132. </Engine>
  133. </Service>
  134. </Server>