Changeset 25132

Show
Ignore:
Timestamp:
22.02.2012 15:45:40 (8 years ago)
Author:
sjm84
Message:

Committing a tomcat 7 server file

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/resources/tomcat/server_tomcat7.xml

    r25130 r25132  
    2020     Documentation at /docs/config/server.html 
    2121 --> 
    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  --> 
    2426  <!--APR library loader. Documentation at /docs/apr.html --> 
    2527  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> 
    2628  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --> 
    2729  <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" /> 
    3032  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> 
     33  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> 
    3134 
    3235  <!-- Global JNDI resources 
     
    4548 
    4649  <!-- 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", 
    4851       so you may not define subcomponents such as "Valves" at this level. 
    4952       Documentation at /docs/config/service.html 
    5053   --> 
    5154  <Service name="Catalina"> 
    52    
     55 
    5356    <!--The connectors can use a shared executor, you can define one or more named thread pools--> 
    5457    <!-- 
    55     <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"  
     58    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" 
    5659        maxThreads="150" minSpareThreads="4"/> 
    5760    --> 
    58      
    59      
     61 
     62 
    6063    <!-- A "Connector" represents an endpoint by which requests are received 
    6164         and responses are returned. Documentation at : 
     
    6568         Define a non-SSL HTTP/1.1 Connector on port 8080 
    6669    --> 
    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" /> 
    7673    <!-- A "Connector" using the shared thread pool--> 
    7774    <!-- 
    7875    <Connector executor="tomcatThreadPool" 
    79                port="8080" protocol="HTTP/1.1"  
    80                connectionTimeout="20000"  
     76               port="8080" protocol="HTTP/1.1" 
     77               connectionTimeout="20000" 
    8178               redirectPort="8443" /> 
    82     -->            
     79    --> 
    8380    <!-- 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 
    8582         connector should be using the OpenSSL style configuration 
    8683         described in the APR documentation --> 
     
    10299 
    103100    <!-- 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    --> 
    106103    <Engine name="Catalina" defaultHost="localhost"> 
    107104 
     
    111108      <!-- 
    112109      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> 
    113       -->         
    114  
    115       <!-- The request dumper valve dumps useful debugging information about 
    116            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"/> 
    120110      --> 
    121111 
    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> 
    128122 
    129       <!-- Define the default virtual host 
    130            Note: XML Schema validation will not work with Xerces 2.2. 
    131        --> 
    132123      <Host name="localhost"  appBase="webapps" 
    133             unpackWARs="true" autoDeploy="true" 
    134             xmlValidation="false" xmlNamespaceAware="false"> 
     124            unpackWARs="true" autoDeploy="true"> 
    135125 
    136126        <!-- SingleSignOn valve, share authentication between web applications 
     
    141131 
    142132        <!-- 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 &quot;%r&quot; %s %b" /> 
    148138 
    149139      </Host>