tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat/proposals/catalina server.xml
Date Thu, 20 Jan 2000 06:28:11 GMT
craigmcc    00/01/19 22:28:11

  Added:       proposals/catalina server.xml
  Log:
  Example server configuration file for the "Catalina" proposal.  The
  functionality described in this file is not yet complete -- it is here
  to illustrate the proposed approach to hierarchical component
  configuration.
  
  Revision  Changes    Path
  1.1                  jakarta-tomcat/proposals/catalina/server.xml
  
  Index: server.xml
  ===================================================================
  <!-- Example Server Configuration File -->
  <!-- Note that component elements are nested corresponding to their
       parent-child relationships with each other -->
  
  <Server adminPort="-1" workDir="work">
  
    <Connector className="org.apache.tomcat.service.TcpEndpointConnector">
      <Parameter name="handler"
       value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
      <Parameter name="port" value="8007"/>
    </Connector>
  
    <Engine defaultHost="localhost" unknownHost="localhost">
  
      <!-- Because this Realm is here, an instance will be shared globally -->
      <Realm className="org.apache.tomcat.realm.JndiRealm"
             param1="value1" /> <!-- Parameters to access directory via JNDI -->
  
      <Host name="localhost">
  
        <!-- Processes all requests for this virtual host -->
        <Interceptor className="org.apache.tomcat.weblog.AccessLogInterceptor"
                     directory="log" prefix="access_log." suffix=""
                     format="standard"/>
  
        <!-- Shared by all Contexts related to this virtual host -->
        <Logger className="org.apache.tomcat.logger.FileLogger"
                directory="log" prefix="tomcat." suffix=".log"
                timestamp="false"/>
  
        <Context path="/" docBase="webpages"
                 defaultSessionTimeout="30" isWARExpanded="true"
                 isWARValidated="false" isInvokerEnabled="true"
                 isWorkDirPersistent="false"/>
  
        <Context className="org.apache.tomcat.core.SpecialContext"
                 path="/examples" docBase="examples"
                 defaultSessionTimeout="30" isWARExpanded="true"
                 isWARValidated="false" isInvokerEnabled="true"
                 isWorkDirPersistent="false">
  	<!-- Processes all requests for this Context -->
          <Interceptor
           className="org.apache.tomcat.security.SecurityInterceptor"/>
  	<Interceptor
           className="com.mycompany.interceptors.MyInterceptor"
           myParam1="value1" myParam2="value2"/>
  	<!-- Used to manage sessions for this Context only -->
          <Manager className="org.apache.tomcat.session.StandardManager"
                   checkInterval="15" maxActiveSessions="100"/>
        </Context>
  
      </Host>
  
      <Host name="www.mycompany.com">
        <!-- Settings for a different host -->
      </Host>
  
    </Engine>
  
  </Server>
  
  
  

Mime
View raw message