|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- Note: A "Server" is not itself a "Container", so you may not |
| 3 | + define subcomponents such as "Valves" at this level. |
| 4 | + Documentation at /docs/config/server.html |
| 5 | + --> |
| 6 | +<Server port="8005" shutdown="SHUTDOWN"> |
| 7 | + <Listener className="org.apache.catalina.startup.VersionLoggerListener" /> |
| 8 | + <!-- Security listener. Documentation at /docs/config/listeners.html |
| 9 | + <Listener className="org.apache.catalina.security.SecurityListener" /> |
| 10 | + --> |
| 11 | + <!-- APR library loader. Documentation at /docs/apr.html --> |
| 12 | + <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> |
| 13 | + <!-- Prevent memory leaks due to use of particular java/javax APIs--> |
| 14 | + <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> |
| 15 | + <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> |
| 16 | + <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> |
| 17 | + |
| 18 | + <!-- Global JNDI resources |
| 19 | + Documentation at /docs/jndi-resources-howto.html |
| 20 | + --> |
| 21 | + <GlobalNamingResources> |
| 22 | + <!-- Editable user database that can also be used by |
| 23 | + UserDatabaseRealm to authenticate users |
| 24 | + --> |
| 25 | + <Resource name="UserDatabase" auth="Container" |
| 26 | + type="org.apache.catalina.UserDatabase" |
| 27 | + description="User database that can be updated and saved" |
| 28 | + factory="org.apache.catalina.users.MemoryUserDatabaseFactory" |
| 29 | + pathname="conf/tomcat-users.xml" /> |
| 30 | + </GlobalNamingResources> |
| 31 | + |
| 32 | + <!-- A "Service" is a collection of one or more "Connectors" that share |
| 33 | + a single "Container" Note: A "Service" is not itself a "Container", |
| 34 | + so you may not define subcomponents such as "Valves" at this level. |
| 35 | + Documentation at /docs/config/service.html |
| 36 | + --> |
| 37 | + <Service name="Catalina"> |
| 38 | + |
| 39 | + <!--The connectors can use a shared executor, you can define one or more named thread pools--> |
| 40 | + <!-- |
| 41 | + <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" |
| 42 | + maxThreads="150" minSpareThreads="4"/> |
| 43 | + --> |
| 44 | + |
| 45 | + |
| 46 | + <!-- A "Connector" represents an endpoint by which requests are received |
| 47 | + and responses are returned. Documentation at : |
| 48 | + Java HTTP Connector: /docs/config/http.html |
| 49 | + Java AJP Connector: /docs/config/ajp.html |
| 50 | + APR (HTTP/AJP) Connector: /docs/apr.html |
| 51 | + Define a non-SSL/TLS HTTP/1.1 Connector on port 8080 |
| 52 | + --> |
| 53 | + <Connector port="8080" protocol="HTTP/1.1" |
| 54 | + connectionTimeout="20000" |
| 55 | + redirectPort="8443" |
| 56 | + maxParameterCount="1000" |
| 57 | + /> |
| 58 | + |
| 59 | + <Engine name="Catalina" defaultHost="localhost"> |
| 60 | + |
| 61 | + <!--For clustering, please take a look at documentation at: |
| 62 | + /docs/cluster-howto.html (simple how to) |
| 63 | + /docs/config/cluster.html (reference documentation) --> |
| 64 | + <!-- |
| 65 | + <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> |
| 66 | + --> |
| 67 | + |
| 68 | + <!-- Use the LockOutRealm to prevent attempts to guess user passwords |
| 69 | + via a brute-force attack --> |
| 70 | + <Realm className="org.apache.catalina.realm.LockOutRealm"> |
| 71 | + <!-- This Realm uses the UserDatabase configured in the global JNDI |
| 72 | + resources under the key "UserDatabase". Any edits |
| 73 | + that are performed against this UserDatabase are immediately |
| 74 | + available for use by the Realm. --> |
| 75 | + <Realm className="org.apache.catalina.realm.UserDatabaseRealm" |
| 76 | + resourceName="UserDatabase"/> |
| 77 | + </Realm> |
| 78 | + |
| 79 | + <Host name="localhost" appBase="webapps" |
| 80 | + unpackWARs="true" autoDeploy="true"> |
| 81 | + |
| 82 | + <!-- SingleSignOn valve, share authentication between web applications |
| 83 | + Documentation at: /docs/config/valve.html --> |
| 84 | + <!-- |
| 85 | + <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> |
| 86 | + --> |
| 87 | + |
| 88 | + <Valve className="ch.qos.logback.access.tomcat.LogbackValve"/> |
| 89 | + |
| 90 | + </Host> |
| 91 | + </Engine> |
| 92 | + </Service> |
| 93 | +</Server> |
0 commit comments