Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Server port="-1" shutdown="SHUTDOWN">
- <!-- Security listener. Documentation at /docs/config/listeners.html -->
- <Listener className="org.apache.catalina.security.SecurityListener" />
- <!--APR library loader. Documentation at /docs/apr.html -->
- <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
- <!-- Prevent memory leaks due to use of particular java/javax APIs -->
- <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
- <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
- <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
- <!-- A "Service" is a collection of one or more "Connectors" that share
- a single "Container" Note: A "Service" is not itself a "Container", so you
- may not define subcomponents such as "Valves" at this level. Documentation
- at /docs/config/service.html -->
- <Service name="Catalina">
- <Executor name="HttpThreadPool" namePrefix="http-exececutor-"
- maxThreads="128" minSpareThreads="25" />
- <Executor name="HttpsThreadPool" namePrefix="https-exececutor-"
- maxThreads="128" minSpareThreads="25" />
- <!-- A "Connector" using the shared thread pool -->
- <Connector executor="HttpThreadPool" port="8080" protocol="HTTP/1.1"
- connectionTimeout="20000" redirectPort="8443"
- maxPostSize="10485760" compression="on"
- compressableMimeType="text/html,text/plain,text/xml,application/xml,text/javascript"
- noCompressionUserAgents=".*MSIE[56].*" />
- <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
- <Connector executor="HttpsThreadPool" protocol="HTTP/1.1"
- port="8443" maxThreads="200" scheme="https" secure="true" SSLEnabled="true"
- SSLCertificateFile="${catalina.base}/certs/*****"
- SSLCertificateKeyFile="${catalina.base}/certs/*****"
- SSLCACertificateFile="${catalina.base}/certs/*****"
- maxPostSize="10485760" compression="on"
- compressableMimeType="text/html,text/plain,text/xml,application/xml,text/javascript"
- noCompressionUserAgents=".*MSIE[56].*" />
- <!-- You should set jvmRoute to support load-balancing via AJP ie : <Engine
- name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> -->
- <Engine name="Catalina" defaultHost="*****">
- <!--For clustering, please take a look at documentation at: /docs/cluster-howto.html
- (simple how to) /docs/config/cluster.html (reference documentation) -->
- <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster">
- <Manager className="org.apache.catalina.ha.session.DeltaManager"
- stateTransferTimeout="5" />
- <Channel className="org.apache.catalina.tribes.group.GroupChannel">
- <Membership className="org.apache.catalina.tribes.membership.McastService"
- address="${multicast}" />
- </Channel>
- </Cluster>
- <!-- SingleSignOn valve, share authentication between web applications
- Documentation at: /docs/config/valve.html -->
- <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn"
- /> -->
- <Host name="*****" autoDeploy="true" appBase="webapps/www" deployIgnore=".svn">
- <Valve className="org.apache.catalina.valves.rewrite.RewriteValve" />
- <Valve className="org.apache.catalina.valves.AccessLogValve"
- prefix="www_access_log." fileDateFormat="yyyy-MM-dd-HH" suffix=".log"
- pattern='%h "%{X-Forwarded-For}i" %p %t %Dms %BB %v "%r" %s "%{Referer}i" "%{User-Agent}i"'
- directory="/var/log/tomcat" />
- </Host>
- <Host name="*****" autoDeploy="true" appBase="webapps/swf" deployIgnore=".svn">
- <Valve className="org.apache.catalina.valves.AccessLogValve"
- prefix="swf_access_log." fileDateFormat="yyyy-MM-dd-HH" suffix=".log"
- pattern='%h "%{X-Forwarded-For}i" %p %t %Dms %BB %v "%r" %s "%{Referer}i" "%{User-Agent}i"'
- directory="/var/log/tomcat" />
- </Host>
- </Engine>
- </Service>
- </Server>
Advertisement
Add Comment
Please, Sign In to add comment