Created
September 17, 2013 19:55
-
-
Save ggdio/6599687 to your computer and use it in GitHub Desktop.
Tomcat server.xml configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Server port="8005" shutdown="SHUTDOWN"> | |
<Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/> | |
<Listener className="org.apache.catalina.core.JasperListener"/> | |
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/> | |
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/> | |
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/> | |
<GlobalNamingResources> | |
<Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/> | |
</GlobalNamingResources> | |
<Service name="Catalina"> | |
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/> | |
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/> | |
<Engine defaultHost="localhost" name="Catalina"> | |
<Realm className="org.apache.catalina.realm.LockOutRealm"> | |
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> | |
</Realm> | |
<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true"> | |
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t "%r" %s %b" prefix="localhost_access_log." resolveHosts="false" suffix=".txt"/> | |
<!-- CONTEXT CONFIG --> | |
<Context docBase="project" path="/context" reloadable="true" source="org.eclipse.jst.jee.server:contexto"/> | |
</Host> | |
</Engine> | |
</Service> | |
</Server> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment