Guest User

Tomcat 8 - server.xml

a guest
Aug 5th, 2014
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. <Server port="-1" shutdown="SHUTDOWN">
  2. <!-- Security listener. Documentation at /docs/config/listeners.html -->
  3. <Listener className="org.apache.catalina.security.SecurityListener" />
  4.  
  5. <!--APR library loader. Documentation at /docs/apr.html -->
  6. <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  7. <!-- Prevent memory leaks due to use of particular java/javax APIs -->
  8. <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  9. <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  10. <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
  11.  
  12. <!-- A "Service" is a collection of one or more "Connectors" that share
  13. a single "Container" Note: A "Service" is not itself a "Container", so you
  14. may not define subcomponents such as "Valves" at this level. Documentation
  15. at /docs/config/service.html -->
  16. <Service name="Catalina">
  17.  
  18.  
  19. <Executor name="HttpThreadPool" namePrefix="http-exececutor-"
  20. maxThreads="128" minSpareThreads="25" />
  21.  
  22. <Executor name="HttpsThreadPool" namePrefix="https-exececutor-"
  23. maxThreads="128" minSpareThreads="25" />
  24.  
  25. <!-- A "Connector" using the shared thread pool -->
  26.  
  27. <Connector executor="HttpThreadPool" port="8080" protocol="HTTP/1.1"
  28. connectionTimeout="20000" redirectPort="8443"
  29. maxPostSize="10485760" compression="on"
  30. compressableMimeType="text/html,text/plain,text/xml,application/xml,text/javascript"
  31. noCompressionUserAgents=".*MSIE[56].*" />
  32.  
  33. <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
  34. <Connector executor="HttpsThreadPool" protocol="HTTP/1.1"
  35. port="8443" maxThreads="200" scheme="https" secure="true" SSLEnabled="true"
  36. SSLCertificateFile="${catalina.base}/certs/*****"
  37. SSLCertificateKeyFile="${catalina.base}/certs/*****"
  38. SSLCACertificateFile="${catalina.base}/certs/*****"
  39. maxPostSize="10485760" compression="on"
  40. compressableMimeType="text/html,text/plain,text/xml,application/xml,text/javascript"
  41. noCompressionUserAgents=".*MSIE[56].*" />
  42.  
  43. <!-- You should set jvmRoute to support load-balancing via AJP ie : <Engine
  44. name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> -->
  45.  
  46.  
  47. <Engine name="Catalina" defaultHost="*****">
  48.  
  49. <!--For clustering, please take a look at documentation at: /docs/cluster-howto.html
  50. (simple how to) /docs/config/cluster.html (reference documentation) -->
  51. <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster">
  52.  
  53. <Manager className="org.apache.catalina.ha.session.DeltaManager"
  54. stateTransferTimeout="5" />
  55. <Channel className="org.apache.catalina.tribes.group.GroupChannel">
  56. <Membership className="org.apache.catalina.tribes.membership.McastService"
  57. address="${multicast}" />
  58. </Channel>
  59. </Cluster>
  60.  
  61. <!-- SingleSignOn valve, share authentication between web applications
  62. Documentation at: /docs/config/valve.html -->
  63. <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn"
  64. /> -->
  65.  
  66. <Host name="*****" autoDeploy="true" appBase="webapps/www" deployIgnore=".svn">
  67. <Valve className="org.apache.catalina.valves.rewrite.RewriteValve" />
  68.  
  69. <Valve className="org.apache.catalina.valves.AccessLogValve"
  70. prefix="www_access_log." fileDateFormat="yyyy-MM-dd-HH" suffix=".log"
  71. pattern='%h "%{X-Forwarded-For}i" %p %t %Dms %BB %v "%r" %s "%{Referer}i" "%{User-Agent}i"'
  72. directory="/var/log/tomcat" />
  73.  
  74. </Host>
  75.  
  76. <Host name="*****" autoDeploy="true" appBase="webapps/swf" deployIgnore=".svn">
  77.  
  78. <Valve className="org.apache.catalina.valves.AccessLogValve"
  79. prefix="swf_access_log." fileDateFormat="yyyy-MM-dd-HH" suffix=".log"
  80. pattern='%h "%{X-Forwarded-For}i" %p %t %Dms %BB %v "%r" %s "%{Referer}i" "%{User-Agent}i"'
  81. directory="/var/log/tomcat" />
  82. </Host>
  83.  
  84. </Engine>
  85. </Service>
  86. </Server>
Advertisement
Add Comment
Please, Sign In to add comment