Advertisement
Guest User

Untitled

a guest
Mar 5th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.85 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
  3. license agreements. See the NOTICE file distributed with this work for additional
  4. information regarding copyright ownership. The ASF licenses this file to
  5. You under the Apache License, Version 2.0 (the "License"); you may not use
  6. this file except in compliance with the License. You may obtain a copy of
  7. the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
  8. by applicable law or agreed to in writing, software distributed under the
  9. License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
  10. OF ANY KIND, either express or implied. See the License for the specific
  11. language governing permissions and limitations under the License. --><!-- Note: A "Server" is not itself a "Container", so you may not define
  12. subcomponents such as "Valves" at this level. Documentation at /docs/config/server.html -->
  13. <Server port="8005" shutdown="SHUTDOWN">
  14. <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
  15. <!-- Security listener. Documentation at /docs/config/listeners.html <Listener
  16. className="org.apache.catalina.security.SecurityListener" /> -->
  17. <!--APR library loader. Documentation at /docs/apr.html -->
  18. <Listener SSLEngine="on"
  19. className="org.apache.catalina.core.AprLifecycleListener" />
  20. <!-- Prevent memory leaks due to use of particular java/javax APIs -->
  21. <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  22. <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  23. <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
  24.  
  25. <!-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html -->
  26. <GlobalNamingResources>
  27. <!-- Editable user database that can also be used by UserDatabaseRealm
  28. to authenticate users -->
  29. <Resource auth="Container" description="User database that can be updated and saved"
  30. factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase"
  31. pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase" />
  32. </GlobalNamingResources>
  33.  
  34. <!-- A "Service" is a collection of one or more "Connectors" that share
  35. a single "Container" Note: A "Service" is not itself a "Container", so you
  36. may not define subcomponents such as "Valves" at this level. Documentation
  37. at /docs/config/service.html -->
  38. <Service name="Catalina">
  39.  
  40. <!--The connectors can use a shared executor, you can define one or more
  41. named thread pools -->
  42. <!-- <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="150"
  43. minSpareThreads="4"/> -->
  44.  
  45.  
  46. <!-- A "Connector" represents an endpoint by which requests are received
  47. and responses are returned. Documentation at : Java HTTP Connector: /docs/config/http.html
  48. Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html
  49. Define a non-SSL/TLS HTTP/1.1 Connector on port 8080 -->
  50. <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1"
  51. redirectPort="8443" />
  52. <!-- A "Connector" using the shared thread pool -->
  53. <!-- <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1"
  54. connectionTimeout="20000" redirectPort="8443" /> -->
  55. <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 This connector uses
  56. the NIO implementation. The default SSLImplementation will depend on the
  57. presence of the APR/native library and the useOpenSSL attribute of the AprLifecycleListener.
  58. Either JSSE or OpenSSL style configuration may be used regardless of the
  59. SSLImplementation selected. JSSE style configuration is used below. -->
  60. <!-- <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
  61. maxThreads="150" SSLEnabled="true"> <SSLHostConfig> <Certificate certificateKeystoreFile="conf/localhost-rsa.jks"
  62. type="RSA" /> </SSLHostConfig> </Connector> -->
  63. <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2 This
  64. connector uses the APR/native implementation which always uses OpenSSL for
  65. TLS. Either JSSE or OpenSSL style configuration may be used. OpenSSL style
  66. configuration is used below. -->
  67. <!-- <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
  68. maxThreads="150" SSLEnabled="true" > <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol"
  69. /> <SSLHostConfig> <Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
  70. certificateFile="conf/localhost-rsa-cert.pem" certificateChainFile="conf/localhost-rsa-chain.pem"
  71. type="RSA" /> </SSLHostConfig> </Connector> -->
  72.  
  73. <!-- Define an AJP 1.3 Connector on port 8009 -->
  74. <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
  75.  
  76.  
  77. <!-- An Engine represents the entry point (within Catalina) that processes
  78. every request. The Engine implementation for Tomcat stand alone analyzes
  79. the HTTP headers included with the request, and passes them on to the appropriate
  80. Host (virtual host). Documentation at /docs/config/engine.html -->
  81.  
  82. <!-- You should set jvmRoute to support load-balancing via AJP ie : <Engine
  83. name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> -->
  84. <Engine defaultHost="localhost" name="Catalina">
  85.  
  86. <!--For clustering, please take a look at documentation at: /docs/cluster-howto.html
  87. (simple how to) /docs/config/cluster.html (reference documentation) -->
  88. <!-- <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> -->
  89.  
  90. <!-- Use the LockOutRealm to prevent attempts to guess user passwords
  91. via a brute-force attack -->
  92.  
  93.  
  94. <Host appBase="webapps" autoDeploy="true" name="localhost"
  95. unpackWARs="true">
  96.  
  97. <!-- SingleSignOn valve, share authentication between web applications
  98. Documentation at: /docs/config/valve.html -->
  99. <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn"
  100. /> -->
  101.  
  102. <!-- Access log processes all example. Documentation at: /docs/config/valve.html
  103. Note: The pattern used is equivalent to using pattern="common" -->
  104. <Valve className="org.apache.catalina.valves.AccessLogValve"
  105. directory="logs" pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="localhost_access_log"
  106. suffix=".txt" />
  107.  
  108. <Context docBase="UiMioService" path="/UiMioService"
  109. reloadable="true" source="org.eclipse.jst.jee.server:UiMioService"
  110. debug="0" privileged="true">
  111. <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
  112. driverName="org.postgresql.Driver"
  113. connectionURL="jdbc:postgresql://localhost/postgres?user=postgres&amp;password=Ribolovac019"
  114. userTable="powmioschema.users" userNameCol="username" userCredCol="password"
  115. userRoleTable="powmioschema.user_roles" roleNameCol="role" />
  116. </Context>
  117. </Host>
  118. </Engine>
  119. </Service>
  120. </Server>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement