[26434] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 2 |
|
---|
| 3 | <!--
|
---|
| 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 |
|
---|
| 11 | http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 12 |
|
---|
| 13 | Unless required by applicable law or agreed to in writing, software
|
---|
| 14 | distributed under the License is distributed on an "AS IS" BASIS,
|
---|
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
| 16 | See the License for the specific language governing permissions and
|
---|
| 17 | limitations under the License.
|
---|
| 18 | -->
|
---|
| 19 | <!-- Note: A "Server" is not itself a "Container", so you may not
|
---|
| 20 | define subcomponents such as "Valves" at this level.
|
---|
| 21 | Documentation at /docs/config/server.html
|
---|
| 22 | -->
|
---|
| 23 | <Server port="8305" shutdown="SHUTDOWN">
|
---|
| 24 | <!-- Security listener. Documentation at /docs/config/listeners.html
|
---|
| 25 | <Listener className="org.apache.catalina.security.SecurityListener" />
|
---|
| 26 | -->
|
---|
| 27 | <!--APR library loader. Documentation at /docs/apr.html -->
|
---|
| 28 | <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on"/>
|
---|
| 29 | <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
|
---|
| 30 | <Listener className="org.apache.catalina.core.JasperListener"/>
|
---|
| 31 | <!-- Prevent memory leaks due to use of particular java/javax APIs-->
|
---|
| 32 | <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
|
---|
| 33 | <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
|
---|
| 34 | <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>
|
---|
| 35 | <!-- Global JNDI resources
|
---|
| 36 | Documentation at /docs/jndi-resources-howto.html
|
---|
| 37 | -->
|
---|
| 38 | <GlobalNamingResources>
|
---|
| 39 | <!-- Editable user database that can also be used by
|
---|
| 40 | UserDatabaseRealm to authenticate users
|
---|
| 41 | -->
|
---|
| 42 | <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml"/>
|
---|
| 43 | </GlobalNamingResources>
|
---|
| 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 | <!--The connectors can use a shared executor, you can define one or more named thread pools-->
|
---|
| 51 | <!--
|
---|
| 52 | <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
|
---|
| 53 | maxThreads="150" minSpareThreads="4"/>
|
---|
| 54 | -->
|
---|
| 55 | <!-- A "Connector" represents an endpoint by which requests are received
|
---|
| 56 | and responses are returned. Documentation at :
|
---|
| 57 | Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
|
---|
| 58 | Java AJP Connector: /docs/config/ajp.html
|
---|
| 59 | APR (HTTP/AJP) Connector: /docs/apr.html
|
---|
| 60 | Define a non-SSL HTTP/1.1 Connector on port 8383
|
---|
| 61 | -->
|
---|
| 62 | <Connector port="@tomcatport@" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" compression="on" compressionMinSize="524288" compressableMimeType="text/html,text/xml,text/css,text/xsl,text/javascript" noCompressionUserAgents="gozilla, traviata" URIEncoding="UTF-8" enableLookups="true" acceptCount="100" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"/>
|
---|
| 63 | <!-- A "Connector" using the shared thread pool-->
|
---|
| 64 | <!--
|
---|
| 65 | <Connector executor="tomcatThreadPool"
|
---|
| 66 | port="8080" protocol="HTTP/1.1"
|
---|
| 67 | connectionTimeout="20000"
|
---|
| 68 | redirectPort="8443" />
|
---|
| 69 | -->
|
---|
| 70 | <!-- Define a SSL HTTP/1.1 Connector on port 8443
|
---|
| 71 | This connector uses the JSSE configuration, when using APR, the
|
---|
| 72 | connector should be using the OpenSSL style configuration
|
---|
| 73 | described in the APR documentation -->
|
---|
| 74 | <!--
|
---|
| 75 | <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
|
---|
| 76 | maxThreads="150" scheme="https" secure="true"
|
---|
| 77 | clientAuth="false" sslProtocol="TLS" />
|
---|
| 78 | -->
|
---|
| 79 | <!-- Define an AJP 1.3 Connector on port 8009 -->
|
---|
| 80 | <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8"/>
|
---|
| 81 | <!-- An Engine represents the entry point (within Catalina) that processes
|
---|
| 82 | every request. The Engine implementation for Tomcat stand alone
|
---|
| 83 | analyzes the HTTP headers included with the request, and passes them
|
---|
| 84 | on to the appropriate Host (virtual host).
|
---|
| 85 | Documentation at /docs/config/engine.html -->
|
---|
| 86 | <!-- You should set jvmRoute to support load-balancing via AJP ie :
|
---|
| 87 | <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
|
---|
| 88 | -->
|
---|
| 89 | <Engine name="Catalina" defaultHost="localhost">
|
---|
| 90 | <!--For clustering, please take a look at documentation at:
|
---|
| 91 | /docs/cluster-howto.html (simple how to)
|
---|
| 92 | /docs/config/cluster.html (reference documentation) -->
|
---|
| 93 | <!--
|
---|
| 94 | <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
|
---|
| 95 | -->
|
---|
| 96 | <!-- Use the LockOutRealm to prevent attempts to guess user passwords
|
---|
| 97 | via a brute-force attack -->
|
---|
| 98 | <Realm className="org.apache.catalina.realm.LockOutRealm">
|
---|
| 99 | <!-- This Realm uses the UserDatabase configured in the global JNDI
|
---|
| 100 | resources under the key "UserDatabase". Any edits
|
---|
| 101 | that are performed against this UserDatabase are immediately
|
---|
| 102 | available for use by the Realm. -->
|
---|
| 103 | <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
|
---|
| 104 | </Realm>
|
---|
| 105 | <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
|
---|
| 106 | <!-- SingleSignOn valve, share authentication between web applications
|
---|
| 107 | Documentation at: /docs/config/valve.html -->
|
---|
| 108 | <!--
|
---|
| 109 | <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
|
---|
| 110 | -->
|
---|
| 111 | <!-- Access log processes all example.
|
---|
| 112 | Documentation at: /docs/config/valve.html
|
---|
| 113 | Note: The pattern used is equivalent to using pattern="common" -->
|
---|
| 114 | <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b"/>
|
---|
| 115 | </Host>
|
---|
| 116 | </Engine>
|
---|
| 117 | </Service>
|
---|
| 118 | </Server>
|
---|