Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_tomcat7_server.xml 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. <!-- Security listener. Documentation at /docs/config/listeners.html
  22. <Listener className="org.apache.catalina.security.SecurityListener" />
  23. -->
  24. <!--APR library loader. Documentation at /docs/apr.html -->
  25. <!--
  26. <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  27. -->
  28. <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  29. <Listener className="org.apache.catalina.core.JasperListener" />
  30. <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  31. <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  32. <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  33. <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
  34. <!-- Global JNDI resources
  35. Documentation at /docs/jndi-resources-howto.html
  36. -->
  37. <GlobalNamingResources>
  38. <!-- Editable user database that can also be used by
  39. UserDatabaseRealm to authenticate users
  40. -->
  41. <Resource name="UserDatabase" auth="Container"
  42. type="org.apache.catalina.UserDatabase"
  43. description="User database that can be updated and saved"
  44. factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
  45. pathname="conf/tomcat-users.xml" />
  46. </GlobalNamingResources>
  47. <!-- A "Service" is a collection of one or more "Connectors" that share
  48. a single "Container" Note: A "Service" is not itself a "Container",
  49. so you may not define subcomponents such as "Valves" at this level.
  50. Documentation at /docs/config/service.html
  51. -->
  52. <Service name="Catalina">
  53. <!--The connectors can use a shared executor, you can define one or more named thread pools-->
  54. <!--
  55. <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
  56. maxThreads="150" minSpareThreads="4"/>
  57. -->
  58. <!-- A "Connector" represents an endpoint by which requests are received
  59. and responses are returned. Documentation at :
  60. Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
  61. Java AJP Connector: /docs/config/ajp.html
  62. APR (HTTP/AJP) Connector: /docs/apr.html
  63. Define a non-SSL HTTP/1.1 Connector on port 8080
  64. -->
  65. <Connector address="127.0.0.1" port="8080" protocol="HTTP/1.1"
  66. connectionTimeout="20000"
  67. URIEncoding="UTF-8"
  68. redirectPort="8443" />
  69. <!-- A "Connector" using the shared thread pool-->
  70. <!--
  71. <Connector executor="tomcatThreadPool"
  72. port="8080" protocol="HTTP/1.1"
  73. connectionTimeout="20000"
  74. redirectPort="8443" />
  75. -->
  76. <!-- Define a SSL HTTP/1.1 Connector on port 8443
  77. This connector uses the BIO implementation that requires the JSSE
  78. style configuration. When using the APR/native implementation, the
  79. OpenSSL style configuration is required as described in the APR/native
  80. documentation -->
  81. <!--
  82. <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
  83. maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
  84. clientAuth="false" sslProtocol="TLS" />
  85. -->
  86. <!-- Define an AJP 1.3 Connector on port 8009 -->
  87. <!--
  88. <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
  89. -->
  90. <!-- An Engine represents the entry point (within Catalina) that processes
  91. every request. The Engine implementation for Tomcat stand alone
  92. analyzes the HTTP headers included with the request, and passes them
  93. on to the appropriate Host (virtual host).
  94. Documentation at /docs/config/engine.html -->
  95. <!-- You should set jvmRoute to support load-balancing via AJP ie :
  96. <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
  97. -->
  98. <Engine name="Catalina" defaultHost="localhost">
  99. <!--For clustering, please take a look at documentation at:
  100. /docs/cluster-howto.html (simple how to)
  101. /docs/config/cluster.html (reference documentation) -->
  102. <!--
  103. <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
  104. -->
  105. <!-- Use the LockOutRealm to prevent attempts to guess user passwords
  106. via a brute-force attack -->
  107. <Realm className="org.apache.catalina.realm.LockOutRealm">
  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. </Realm>
  115. <Host name="localhost" appBase="webapps"
  116. unpackWARs="true" autoDeploy="true">
  117. <!-- SingleSignOn valve, share authentication between web applications
  118. Documentation at: /docs/config/valve.html -->
  119. <!--
  120. <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
  121. -->
  122. <!-- Access log processes all example.
  123. Documentation at: /docs/config/valve.html
  124. Note: The pattern used is equivalent to using pattern="common" -->
  125. <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
  126. prefix="localhost_access_log." suffix=".txt"
  127. pattern="%h %l %u %t &quot;%r&quot; %s %b" />
  128. </Host>
  129. </Engine>
  130. </Service>
  131. </Server>