ssl-server.xml.conf 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?xml version='1.0' encoding='utf-8'?>
  2. <!--
  3. All Rights Reserved.
  4. Licensed to the Apache Software Foundation (ASF) under one or more
  5. contributor license agreements. See the NOTICE file distributed with
  6. this work for additional information regarding copyright ownership.
  7. The ASF licenses this file to You under the Apache License, Version 2.0
  8. (the "License"); you may not use this file except in compliance with
  9. the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing, software
  12. distributed under the License is distributed on an "AS IS" BASIS,
  13. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. See the License for the specific language governing permissions and
  15. limitations under the License.
  16. -->
  17. <!-- Note: A "Server" is not itself a "Container", so you may not
  18. define subcomponents such as "Valves" at this level.
  19. Documentation at /docs/config/server.html
  20. -->
  21. <Server port="${httpfs.admin.port}" shutdown="SHUTDOWN">
  22. <!--APR library loader. Documentation at /docs/apr.html -->
  23. <Listener className="org.apache.catalina.core.AprLifecycleListener"
  24. SSLEngine="on"/>
  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
  29. className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
  30. <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
  31. <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
  32. <Listener
  33. className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
  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="httpfs.max.threads" minSpareThreads="4"/>
  57. -->
  58. <!-- Define a SSL HTTP/1.1 Connector on port 8443
  59. This connector uses the JSSE configuration, when using APR, the
  60. connector should be using the OpenSSL style configuration
  61. described in the APR documentation -->
  62. <Connector port="${httpfs.http.port}" protocol="HTTP/1.1" SSLEnabled="true"
  63. maxThreads="150" scheme="https" secure="true"
  64. clientAuth="false" sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2,SSLv2Hello"
  65. keystoreFile="${httpfs.ssl.keystore.file}"
  66. keystorePass="_httpfs_ssl_keystore_pass_"/>
  67. <!-- Define an AJP 1.3 Connector on port 8009 -->
  68. <!-- An Engine represents the entry point (within Catalina) that processes
  69. every request. The Engine implementation for Tomcat stand alone
  70. analyzes the HTTP headers included with the request, and passes them
  71. on to the appropriate Host (virtual host).
  72. Documentation at /docs/config/engine.html -->
  73. <!-- You should set jvmRoute to support load-balancing via AJP ie :
  74. <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
  75. -->
  76. <Engine name="Catalina" defaultHost="localhost">
  77. <!--For clustering, please take a look at documentation at:
  78. /docs/cluster-howto.html (simple how to)
  79. /docs/config/cluster.html (reference documentation) -->
  80. <!--
  81. <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
  82. -->
  83. <!-- The request dumper valve dumps useful debugging information about
  84. the request and response data received and sent by Tomcat.
  85. Documentation at: /docs/config/valve.html -->
  86. <!--
  87. <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
  88. -->
  89. <!-- This Realm uses the UserDatabase configured in the global JNDI
  90. resources under the key "UserDatabase". Any edits
  91. that are performed against this UserDatabase are immediately
  92. available for use by the Realm. -->
  93. <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
  94. resourceName="UserDatabase"/>
  95. <!-- Define the default virtual host
  96. Note: XML Schema validation will not work with Xerces 2.2.
  97. -->
  98. <Host name="localhost" appBase="webapps"
  99. unpackWARs="true" autoDeploy="true"
  100. xmlValidation="false" xmlNamespaceAware="false">
  101. <!-- SingleSignOn valve, share authentication between web applications
  102. Documentation at: /docs/config/valve.html -->
  103. <!--
  104. <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
  105. -->
  106. <!-- Access log processes all example.
  107. Documentation at: /docs/config/valve.html -->
  108. <!--
  109. <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
  110. prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
  111. -->
  112. </Host>
  113. </Engine>
  114. </Service>
  115. </Server>