[20080] | 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 | -->
|
---|
| 18 | <!-- Note: A "Server" is not itself a "Container", so you may not
|
---|
| 19 | define subcomponents such as "Valves" at this level.
|
---|
| 20 | Documentation at /docs/config/server.html
|
---|
| 21 | -->
|
---|
| 22 | <Server port="@shutdown-port@" shutdown="SHUTDOWN">
|
---|
| 23 |
|
---|
| 24 | <!--APR library loader. Documentation at /docs/apr.html -->
|
---|
| 25 | <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
|
---|
| 26 | <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
|
---|
| 27 | <Listener className="org.apache.catalina.core.JasperListener" />
|
---|
| 28 | <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
|
---|
| 29 | <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
|
---|
| 30 | <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
|
---|
| 31 |
|
---|
| 32 | <!-- Global JNDI resources
|
---|
| 33 | Documentation at /docs/jndi-resources-howto.html
|
---|
| 34 | -->
|
---|
| 35 | <GlobalNamingResources>
|
---|
| 36 | <!-- Editable user database that can also be used by
|
---|
| 37 | UserDatabaseRealm to authenticate users
|
---|
| 38 | -->
|
---|
| 39 | <Resource name="UserDatabase" auth="Container"
|
---|
| 40 | type="org.apache.catalina.UserDatabase"
|
---|
| 41 | description="User database that can be updated and saved"
|
---|
| 42 | factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
|
---|
| 43 | pathname="conf/tomcat-users.xml" />
|
---|
| 44 | </GlobalNamingResources>
|
---|
| 45 |
|
---|
| 46 | <!-- A "Service" is a collection of one or more "Connectors" that share
|
---|
| 47 | a single "Container" Note: A "Service" is not itself a "Container",
|
---|
| 48 | so you may not define subcomponents such as "Valves" at this level.
|
---|
| 49 | Documentation at /docs/config/service.html
|
---|
| 50 | -->
|
---|
| 51 | <Service name="Catalina">
|
---|
| 52 |
|
---|
| 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="150" minSpareThreads="4"/>
|
---|
| 57 | -->
|
---|
| 58 |
|
---|
| 59 |
|
---|
| 60 | <!-- A "Connector" represents an endpoint by which requests are received
|
---|
| 61 | and responses are returned. Documentation at :
|
---|
| 62 | Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
|
---|
| 63 | Java AJP Connector: /docs/config/ajp.html
|
---|
| 64 | APR (HTTP/AJP) Connector: /docs/apr.html
|
---|
| 65 | Define a non-SSL HTTP/1.1 Connector on port 8080
|
---|
| 66 | -->
|
---|
[24007] | 67 | <!-- compressionMinSize is in bytes -->
|
---|
[20080] | 68 | <Connector port="@port@" protocol="HTTP/1.1"
|
---|
| 69 | connectionTimeout="20000"
|
---|
[24007] | 70 | redirectPort="8443"
|
---|
| 71 | compression="on"
|
---|
| 72 | compressionMinSize="524288"
|
---|
| 73 | compressableMimeType="text/html,text/xml,text/css,text/xsl,text/javascript"
|
---|
| 74 | noCompressionUserAgents="gozilla, traviata"
|
---|
| 75 | />
|
---|
[20080] | 76 | <!-- A "Connector" using the shared thread pool-->
|
---|
| 77 | <!--
|
---|
| 78 | <Connector executor="tomcatThreadPool"
|
---|
| 79 | port="8080" protocol="HTTP/1.1"
|
---|
| 80 | connectionTimeout="20000"
|
---|
| 81 | redirectPort="8443" />
|
---|
| 82 | -->
|
---|
| 83 | <!-- Define a SSL HTTP/1.1 Connector on port 8443
|
---|
| 84 | This connector uses the JSSE configuration, when using APR, the
|
---|
| 85 | connector should be using the OpenSSL style configuration
|
---|
| 86 | described in the APR documentation -->
|
---|
| 87 | <!--
|
---|
| 88 | <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
|
---|
| 89 | maxThreads="150" scheme="https" secure="true"
|
---|
| 90 | clientAuth="false" sslProtocol="TLS" />
|
---|
| 91 | -->
|
---|
| 92 |
|
---|
| 93 | <!-- Define an AJP 1.3 Connector on port 8009 -->
|
---|
| 94 | <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
|
---|
| 95 |
|
---|
| 96 |
|
---|
| 97 | <!-- An Engine represents the entry point (within Catalina) that processes
|
---|
| 98 | every request. The Engine implementation for Tomcat stand alone
|
---|
| 99 | analyzes the HTTP headers included with the request, and passes them
|
---|
| 100 | on to the appropriate Host (virtual host).
|
---|
| 101 | Documentation at /docs/config/engine.html -->
|
---|
| 102 |
|
---|
| 103 | <!-- You should set jvmRoute to support load-balancing via AJP ie :
|
---|
| 104 | <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
|
---|
| 105 | -->
|
---|
| 106 | <Engine name="Catalina" defaultHost="localhost">
|
---|
| 107 |
|
---|
| 108 | <!--For clustering, please take a look at documentation at:
|
---|
| 109 | /docs/cluster-howto.html (simple how to)
|
---|
| 110 | /docs/config/cluster.html (reference documentation) -->
|
---|
| 111 | <!--
|
---|
| 112 | <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
|
---|
| 113 | -->
|
---|
| 114 |
|
---|
| 115 | <!-- The request dumper valve dumps useful debugging information about
|
---|
| 116 | the request and response data received and sent by Tomcat.
|
---|
| 117 | Documentation at: /docs/config/valve.html -->
|
---|
| 118 | <!--
|
---|
| 119 | <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
|
---|
| 120 | -->
|
---|
| 121 |
|
---|
| 122 | <!-- This Realm uses the UserDatabase configured in the global JNDI
|
---|
| 123 | resources under the key "UserDatabase". Any edits
|
---|
| 124 | that are performed against this UserDatabase are immediately
|
---|
| 125 | available for use by the Realm. -->
|
---|
| 126 | <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
|
---|
| 127 | resourceName="UserDatabase"/>
|
---|
| 128 |
|
---|
| 129 | <!-- Define the default virtual host
|
---|
| 130 | Note: XML Schema validation will not work with Xerces 2.2.
|
---|
| 131 | -->
|
---|
| 132 | <Host name="localhost" appBase="webapps"
|
---|
| 133 | unpackWARs="true" autoDeploy="true"
|
---|
| 134 | xmlValidation="false" xmlNamespaceAware="false">
|
---|
| 135 |
|
---|
| 136 | <!-- SingleSignOn valve, share authentication between web applications
|
---|
| 137 | Documentation at: /docs/config/valve.html -->
|
---|
| 138 | <!--
|
---|
| 139 | <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
|
---|
| 140 | -->
|
---|
| 141 |
|
---|
| 142 | <!-- Access log processes all example.
|
---|
| 143 | Documentation at: /docs/config/valve.html -->
|
---|
| 144 | <!--
|
---|
| 145 | <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
|
---|
| 146 | prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
|
---|
| 147 | -->
|
---|
| 148 |
|
---|
| 149 | </Host>
|
---|
| 150 | </Engine>
|
---|
| 151 | </Service>
|
---|
| 152 | </Server>
|
---|