Created
May 9, 2013 07:15
-
-
Save jlamoree/5546054 to your computer and use it in GitHub Desktop.
A very simple Apache Tomcat server configuration template
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 className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="off"/> | |
<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 name="UserDatabase" auth="Container" | |
type="org.apache.catalina.UserDatabase" | |
factory="org.apache.catalina.users.MemoryUserDatabaseFactory" | |
pathname="conf/tomcat-users.xml"/> | |
</GlobalNamingResources> | |
<Service name="Catalina"> | |
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000"/> | |
<Engine name="Catalina" defaultHost="localhost"> | |
<Realm className="org.apache.catalina.realm.LockOutRealm"> | |
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> | |
</Realm> | |
<Host name="localhost" appBase="webapps" unpackWARs="false" autoDeploy="false"> | |
<Valve className="org.apache.catalina.valves.RemoteIpValve" | |
remoteIpHeader="X-NGINX-Client-IP" | |
protocolHeader="X-NGINX-Scheme"/> | |
<Valve className="org.apache.catalina.valves.CrawlerSessionManagerValve" | |
crawlerUserAgents=".*googlebot.*|.*CFSCHEDULE.*" | |
sessionInactiveInterval="600"/> | |
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" | |
prefix="localhost_access." suffix=".log" pattern="combined"/> | |
</Host> | |
</Engine> | |
</Service> | |
</Server> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment