--- /dev/null
+<?xml version='1.0' encoding='utf-8'?>\r
+<!--\r
+ Licensed to the Apache Software Foundation (ASF) under one or more\r
+ contributor license agreements. See the NOTICE file distributed with\r
+ this work for additional information regarding copyright ownership.\r
+ The ASF licenses this file to You under the Apache License, Version 2.0\r
+ (the "License"); you may not use this file except in compliance with\r
+ the License. You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+-->\r
+<!-- Note: A "Server" is not itself a "Container", so you may not\r
+ define subcomponents such as "Valves" at this level.\r
+ Documentation at /docs/config/server.html\r
+ -->\r
+<Server port="8005" shutdown="SHUTDOWN">\r
+ <Listener className="org.apache.catalina.startup.VersionLoggerListener" />\r
+ <!-- Security listener. Documentation at /docs/config/listeners.html\r
+ <Listener className="org.apache.catalina.security.SecurityListener" />\r
+ -->\r
+ <!--APR library loader. Documentation at /docs/apr.html -->\r
+ <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />\r
+ <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->\r
+ <Listener className="org.apache.catalina.core.JasperListener" />\r
+ <!-- Prevent memory leaks due to use of particular java/javax APIs-->\r
+ <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />\r
+ <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />\r
+ <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />\r
+\r
+ <!-- Global JNDI resources\r
+ Documentation at /docs/jndi-resources-howto.html\r
+ -->\r
+ <GlobalNamingResources>\r
+ <!-- Editable user database that can also be used by\r
+ UserDatabaseRealm to authenticate users\r
+ -->\r
+ <Resource name="UserDatabase" auth="Container"\r
+ type="org.apache.catalina.UserDatabase"\r
+ description="User database that can be updated and saved"\r
+ factory="org.apache.catalina.users.MemoryUserDatabaseFactory"\r
+ pathname="conf/tomcat-users.xml" />\r
+ </GlobalNamingResources>\r
+\r
+ <!-- A "Service" is a collection of one or more "Connectors" that share\r
+ a single "Container" Note: A "Service" is not itself a "Container",\r
+ so you may not define subcomponents such as "Valves" at this level.\r
+ Documentation at /docs/config/service.html\r
+ -->\r
+ <Service name="Catalina">\r
+\r
+ <!--The connectors can use a shared executor, you can define one or more named thread pools-->\r
+ <!--\r
+ <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"\r
+ maxThreads="150" minSpareThreads="4"/>\r
+ -->\r
+\r
+\r
+ <!-- A "Connector" represents an endpoint by which requests are received\r
+ and responses are returned. Documentation at :\r
+ Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)\r
+ Java AJP Connector: /docs/config/ajp.html\r
+ APR (HTTP/AJP) Connector: /docs/apr.html\r
+ Define a non-SSL HTTP/1.1 Connector on port 8080\r
+ -->\r
+ <Connector port="8201" protocol="HTTP/1.1"\r
+ connectionTimeout="20000"\r
+ redirectPort="8443" />\r
+ <!-- A "Connector" using the shared thread pool-->\r
+ <!--\r
+ <Connector executor="tomcatThreadPool"\r
+ port="8080" protocol="HTTP/1.1"\r
+ connectionTimeout="20000"\r
+ redirectPort="8443" />\r
+ -->\r
+ <!-- Define a SSL HTTP/1.1 Connector on port 8443\r
+ This connector uses the BIO implementation that requires the JSSE\r
+ style configuration. When using the APR/native implementation, the\r
+ OpenSSL style configuration is required as described in the APR/native\r
+ documentation -->\r
+ <!--\r
+ <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"\r
+ maxThreads="150" SSLEnabled="true" scheme="https" secure="true"\r
+ clientAuth="false" sslProtocol="TLS" />\r
+ -->\r
+\r
+ <!-- Define an AJP 1.3 Connector on port 8009 -->\r
+ <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />\r
+\r
+\r
+ <!-- An Engine represents the entry point (within Catalina) that processes\r
+ every request. The Engine implementation for Tomcat stand alone\r
+ analyzes the HTTP headers included with the request, and passes them\r
+ on to the appropriate Host (virtual host).\r
+ Documentation at /docs/config/engine.html -->\r
+\r
+ <!-- You should set jvmRoute to support load-balancing via AJP ie :\r
+ <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">\r
+ -->\r
+ <Engine name="Catalina" defaultHost="localhost">\r
+\r
+ <!--For clustering, please take a look at documentation at:\r
+ /docs/cluster-howto.html (simple how to)\r
+ /docs/config/cluster.html (reference documentation) -->\r
+ <!--\r
+ <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>\r
+ -->\r
+\r
+ <!-- Use the LockOutRealm to prevent attempts to guess user passwords\r
+ via a brute-force attack -->\r
+ <Realm className="org.apache.catalina.realm.LockOutRealm">\r
+ <!-- This Realm uses the UserDatabase configured in the global JNDI\r
+ resources under the key "UserDatabase". Any edits\r
+ that are performed against this UserDatabase are immediately\r
+ available for use by the Realm. -->\r
+ <Realm className="org.apache.catalina.realm.UserDatabaseRealm"\r
+ resourceName="UserDatabase"/>\r
+ </Realm>\r
+\r
+ <Host name="localhost" appBase="webapps"\r
+ unpackWARs="true" autoDeploy="true">\r
+\r
+ <!-- SingleSignOn valve, share authentication between web applications\r
+ Documentation at: /docs/config/valve.html -->\r
+ <!--\r
+ <Valve className="org.apache.catalina.authenticator.SingleSignOn" />\r
+ -->\r
+\r
+ <!-- Access log processes all example.\r
+ Documentation at: /docs/config/valve.html\r
+ Note: The pattern used is equivalent to using pattern="common" -->\r
+ <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"\r
+ prefix="localhost_access_log." suffix=".txt"\r
+ pattern="%h %l %u %t "%r" %s %b" />\r
+\r
+ </Host>\r
+ </Engine>\r
+ </Service>\r
+</Server>\r