Advertisement
Guest User

Untitled

a guest
Sep 28th, 2018
798
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.49 KB | None | 0 0
  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.  
  10. http://www.apache.org/licenses/LICENSE-2.0
  11.  
  12. Unless required by applicable law or agreed to in writing, software
  13. distributed under the License is distributed on an "AS IS" BASIS,
  14. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. See the License for the specific language governing permissions and
  16. limitations under the License.
  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. --><Server port="8005" shutdown="SHUTDOWN">
  21. <Listener className="org.apache.catalina.startup.VersionLoggerListener"/>
  22. <!-- Security listener. Documentation at /docs/config/listeners.html
  23. <Listener className="org.apache.catalina.security.SecurityListener" />
  24. -->
  25. <!--APR library loader. Documentation at /docs/apr.html -->
  26. <Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/>
  27. <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  28. <Listener className="org.apache.catalina.core.JasperListener"/>
  29. <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  30. <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
  31. <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
  32. <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>
  33.  
  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 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"/>
  42. </GlobalNamingResources>
  43.  
  44. <!-- A "Service" is a collection of one or more "Connectors" that share
  45. a single "Container" Note: A "Service" is not itself a "Container",
  46. so you may not define subcomponents such as "Valves" at this level.
  47. Documentation at /docs/config/service.html
  48. -->
  49. <Service name="Catalina">
  50.  
  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.  
  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 connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"
  66. URIEncoding="UTF-8"/>
  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 BIO implementation that requires the JSSE
  76. style configuration. When using the APR/native implementation, the
  77. OpenSSL style configuration is required as described in the APR/native
  78. documentation -->
  79. <!--org.apache.coyote.http11.Http11Protocol-->
  80. <!--
  81. <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
  82. maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
  83. clientAuth="false" sslProtocol="TLS" URIEncoding="UTF-8"
  84. keystoreFile="/home/admin/mystore" keystorePass="FgtmZaQ327309"
  85. keystoreType="JKS" keyAlias="tomcat"
  86. truststoreFile="/home/admin/mytruststore" truststorePass="GhjZre2890"
  87. truststoreType="JKS" />
  88. -->
  89.  
  90. <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
  91. maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
  92. clientAuth="false" sslProtocol="TLS" URIEncoding="UTF-8"
  93. keystoreFile="/home/admin/SSL/10.10.1.72/INIT_NETWORK-SERVER-10.10.1.72.pfx"
  94. keystorePass="RCr1UdEFpRnK"
  95. keystoreType="PKCS12"/>
  96.  
  97.  
  98.  
  99. <!-- Define an AJP 1.3 Connector on port 8009 -->
  100. <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>
  101.  
  102.  
  103. <!-- An Engine represents the entry point (within Catalina) that processes
  104. every request. The Engine implementation for Tomcat stand alone
  105. analyzes the HTTP headers included with the request, and passes them
  106. on to the appropriate Host (virtual host).
  107. Documentation at /docs/config/engine.html -->
  108.  
  109. <!-- You should set jvmRoute to support load-balancing via AJP ie :
  110. <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
  111. -->
  112. <Engine defaultHost="localhost" name="Catalina">
  113.  
  114. <!--For clustering, please take a look at documentation at:
  115. /docs/cluster-howto.html (simple how to)
  116. /docs/config/cluster.html (reference documentation) -->
  117. <!--
  118. <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
  119. -->
  120.  
  121. <!-- Use the LockOutRealm to prevent attempts to guess user passwords
  122. via a brute-force attack -->
  123. <Realm className="org.apache.catalina.realm.LockOutRealm">
  124. <!-- This Realm uses the UserDatabase configured in the global JNDI
  125. resources under the key "UserDatabase". Any edits
  126. that are performed against this UserDatabase are immediately
  127. available for use by the Realm. -->
  128. <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
  129. </Realm>
  130.  
  131. <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
  132.  
  133. <!-- SingleSignOn valve, share authentication between web applications
  134. Documentation at: /docs/config/valve.html -->
  135. <!--
  136. <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
  137. -->
  138.  
  139. <!-- Access log processes all example.
  140. Documentation at: /docs/config/valve.html
  141. Note: The pattern used is equivalent to using pattern="common" -->
  142. <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t "%r" %s %b" prefix="localhost_access_log." suffix=".txt"/>
  143.  
  144. <!-- Context docBase="UploadServletApp" path="/UploadServletApp" reloadable="true" source="org.eclipse.jst.jee.server:UploadServletApp" /-->
  145. </Host>
  146. </Engine>
  147. </Service>
  148. </Server>
  149.  
  150. <?xml version='1.0' encoding='utf-8'?>
  151. <!--
  152. Licensed to the Apache Software Foundation (ASF) under one or more
  153. contributor license agreements. See the NOTICE file distributed with
  154. this work for additional information regarding copyright ownership.
  155. The ASF licenses this file to You under the Apache License, Version 2.0
  156. (the "License"); you may not use this file except in compliance with
  157. the License. You may obtain a copy of the License at
  158.  
  159. http://www.apache.org/licenses/LICENSE-2.0
  160.  
  161. Unless required by applicable law or agreed to in writing, software
  162. distributed under the License is distributed on an "AS IS" BASIS,
  163. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  164. See the License for the specific language governing permissions and
  165. limitations under the License.
  166. -->
  167. <tomcat-users>
  168.  
  169. <!--
  170. NOTE: By default, no user is included in the "manager-gui" role required
  171. to operate the "/manager/html" web application. If you wish to use this app,
  172. you must define such a user - the username and password are arbitrary. It is
  173. strongly recommended that you do NOT use one of the users in the commented out
  174. section below since they are intended for use with the examples web
  175. application.
  176. -->
  177. <!--
  178. NOTE: The sample user and role entries below are intended for use with the
  179. examples web application. They are wrapped in a comment and thus are ignored
  180. when reading this file. If you wish to configure these users for use with the
  181. examples web application, do not forget to remove the <!.. ..> that surrounds
  182. them. You will also need to set the passwords to something appropriate.
  183. -->
  184. <!--
  185. <role rolename="tomcat"/>
  186. <role rolename="role1"/>
  187. <user username="tomcat" password="<must-be-changed>" roles="tomcat"/>
  188. <user username="both" password="<must-be-changed>" roles="tomcat,role1"/>
  189. <user username="role1" password="<must-be-changed>" roles="role1"/>
  190. -->
  191. <role rolename="manager" />
  192. <role rolename="manager-gui" />
  193. <role rolename="manager-jmx" />
  194. <role rolename="manager-script" />
  195. <role rolename="manager-status" />
  196. <user username="admin" password="admin" roles="manager,manager-gui,manager-jmx,manager-script,manager-status" />
  197.  
  198. <role rolename="administrator"></role>
  199. <user username="administrator" password="password" role="admin"></user>
  200.  
  201. </tomcat-users>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement