- Timestamp:
- 2012-02-22T15:45:40+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/resources/tomcat/server_tomcat7.xml
r25130 r25132 20 20 Documentation at /docs/config/server.html 21 21 --> 22 <Server port="@shutdown-port@" shutdown="SHUTDOWN"> 23 22 <Server port="8005" shutdown="SHUTDOWN"> 23 <!-- Security listener. Documentation at /docs/config/listeners.html 24 <Listener className="org.apache.catalina.security.SecurityListener" /> 25 --> 24 26 <!--APR library loader. Documentation at /docs/apr.html --> 25 27 <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> 26 28 <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --> 27 29 <Listener className="org.apache.catalina.core.JasperListener" /> 28 <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html-->29 <Listener className="org.apache.catalina. mbeans.ServerLifecycleListener" />30 <!-- Prevent memory leaks due to use of particular java/javax APIs--> 31 <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> 30 32 <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> 33 <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> 31 34 32 35 <!-- Global JNDI resources … … 45 48 46 49 <!-- A "Service" is a collection of one or more "Connectors" that share 47 a single "Container" Note: A "Service" is not itself a "Container", 50 a single "Container" Note: A "Service" is not itself a "Container", 48 51 so you may not define subcomponents such as "Valves" at this level. 49 52 Documentation at /docs/config/service.html 50 53 --> 51 54 <Service name="Catalina"> 52 55 53 56 <!--The connectors can use a shared executor, you can define one or more named thread pools--> 54 57 <!-- 55 <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" 58 <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" 56 59 maxThreads="150" minSpareThreads="4"/> 57 60 --> 58 59 61 62 60 63 <!-- A "Connector" represents an endpoint by which requests are received 61 64 and responses are returned. Documentation at : … … 65 68 Define a non-SSL HTTP/1.1 Connector on port 8080 66 69 --> 67 <!-- compressionMinSize is in bytes --> 68 <Connector port="@port@" protocol="HTTP/1.1" 69 connectionTimeout="20000" 70 redirectPort="8443" 71 compression="on" 72 compressionMinSize="524288" 73 compressableMimeType="text/html,text/xml,text/css,text/xsl,text/javascript" 74 noCompressionUserAgents="gozilla, traviata" 75 /> 70 <Connector port="8487" protocol="HTTP/1.1" 71 connectionTimeout="20000" 72 redirectPort="8443" /> 76 73 <!-- A "Connector" using the shared thread pool--> 77 74 <!-- 78 75 <Connector executor="tomcatThreadPool" 79 port="8080" protocol="HTTP/1.1" 80 connectionTimeout="20000" 76 port="8080" protocol="HTTP/1.1" 77 connectionTimeout="20000" 81 78 redirectPort="8443" /> 82 --> 79 --> 83 80 <!-- Define a SSL HTTP/1.1 Connector on port 8443 84 This connector uses the JSSE configuration, when using APR, the 81 This connector uses the JSSE configuration, when using APR, the 85 82 connector should be using the OpenSSL style configuration 86 83 described in the APR documentation --> … … 102 99 103 100 <!-- You should set jvmRoute to support load-balancing via AJP ie : 104 <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> 105 --> 101 <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> 102 --> 106 103 <Engine name="Catalina" defaultHost="localhost"> 107 104 … … 111 108 <!-- 112 109 <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> 113 -->114 115 <!-- The request dumper valve dumps useful debugging information about116 the request and response data received and sent by Tomcat.117 Documentation at: /docs/config/valve.html -->118 <!--119 <Valve className="org.apache.catalina.valves.RequestDumperValve"/>120 110 --> 121 111 122 <!-- This Realm uses the UserDatabase configured in the global JNDI 123 resources under the key "UserDatabase". Any edits 124 that are performed against this UserDatabase are immediately 125 available for use by the Realm. --> 126 <Realm className="org.apache.catalina.realm.UserDatabaseRealm" 127 resourceName="UserDatabase"/> 112 <!-- Use the LockOutRealm to prevent attempts to guess user passwords 113 via a brute-force attack --> 114 <Realm className="org.apache.catalina.realm.LockOutRealm"> 115 <!-- This Realm uses the UserDatabase configured in the global JNDI 116 resources under the key "UserDatabase". Any edits 117 that are performed against this UserDatabase are immediately 118 available for use by the Realm. --> 119 <Realm className="org.apache.catalina.realm.UserDatabaseRealm" 120 resourceName="UserDatabase"/> 121 </Realm> 128 122 129 <!-- Define the default virtual host130 Note: XML Schema validation will not work with Xerces 2.2.131 -->132 123 <Host name="localhost" appBase="webapps" 133 unpackWARs="true" autoDeploy="true" 134 xmlValidation="false" xmlNamespaceAware="false"> 124 unpackWARs="true" autoDeploy="true"> 135 125 136 126 <!-- SingleSignOn valve, share authentication between web applications … … 141 131 142 132 <!-- Access log processes all example. 143 Documentation at: /docs/config/valve.html -->144 <!--145 <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 146 prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>147 -->133 Documentation at: /docs/config/valve.html 134 Note: The pattern used is equivalent to using pattern="common" --> 135 <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 136 prefix="localhost_access_log." suffix=".txt" 137 pattern="%h %l %u %t "%r" %s %b" /> 148 138 149 139 </Host>
Note:
See TracChangeset
for help on using the changeset viewer.