tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From todd tredeau <...@wiserlabz.com>
Subject Re: Quistion about multiple host config
Date Sun, 31 Mar 2002 16:49:55 GMT
OK.. Although I gave up running it on NT.. .This should do it..

    -->
          <Manager className="org.apache.catalina.session.PersistentManager"
              debug="0"
              saveOnRestart="true"
              maxActiveSessions="-1"
              minIdleSwap="-1"
              maxIdleSwap="-1"
              maxIdleBackup="-1">
                <Store className="org.apache.catalina.session.FileStore"/>
          </Manager>
   

          <Environment name="maxExemptions" type="java.lang.Integer"
                      value="15"/>
          <Parameter name="context.param.name" value="context.param.value"
                     override="false"/>
          <Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
                    type="javax.sql.DataSource"/>
          <ResourceParams name="jdbc/EmployeeAppDb">
            <parameter><name>user</name><value>sa</value></parameter>
            <parameter><name>password</name><value></value></parameter>
            <parameter><name>driverClassName</name>
              <value>org.hsql.jdbcDriver</value></parameter>
            <parameter><name>driverName</name>
              <value>jdbc:HypersonicSQL:database</value></parameter>
          </ResourceParams>
          <Resource name="mail/Session" auth="Container"
                    type="javax.mail.Session"/>
          <ResourceParams name="mail/Session">
            <parameter>
              <name>mail.smtp.host</name>
              <value>localhost</value>
            </parameter>
          </ResourceParams>
          <ResourceLink name="linkToGlobalResource"
                    global="simpleValue"
                    type="java.lang.Integer"/>
        </Context>

      </Host>

  <Host name="dubbau.com" >
    <Context path=""
    docBase="sys:/web/w"
    crossContext="false"
    debug="0"
    reloadable="true" />

    <Context path="/somename"
    docBase="sys:/web/w/somename"
    crossContext="false"
    debug="0"
    reloadable="true" />
  </Host>

  <Host name="www.followeby.com" >
    <Context path=""
    docBase="sys:/web/followeby"
     crossContext="false"
    debug="0"
    reloadable="true" >
    </Context>
  </Host>

  <Host name="www.onewayoranother.org" >
    <Alias>onewayoranother.org</Alias>
      <Context path=""
    docBase="sys:/web/onewayoranother"
    crossContext="false"
    debug="0"
    reloadable="true" >
   </Context>
  </Host>

    </Engine>

  </Service>

  <!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with 
Tomcat 4.0
       as its servlet container. Please read the README.txt file coming with




Alexander Höglind wrote:

>Hi,
>I'm on my way to give up the apache tomcat servlet engine!!! I just can't figure out how
to configure the server to response to multiple host!
>
>Can anyone see what I'm doing wrong?
>
>This is what I have understood.
>1.
>Install IIS to use isapi_redirect.dll
>http://www.vacodi.com/howto/tomcat/iisnt/index.html
>
> 
>2.
>Create these folders and documents in mysite.com
>|- root (folder)
>|--- web-inf (folder)
>|--------- classes (folder)
>|--------- lib (folder)
>|--------- web.xml (document, just the default)
>|- logs (folder)
> 
>3.
>Define a host in server.xml config file:
>
>********
> <!-- Start av www.mysite.com -->
> <host name="www.mysite.com" appbase="D:\\Inetpub\\mysite.com" unpackWARs="true">
>    <Valve className="org.apache.catalina.valves.AccessLogValve"
>                 directory="logs"  prefix="mysite_com_access_log." suffix=".txt"
>                 pattern="common"/>
>
>         <Logger className="org.apache.catalina.logger.FileLogger"
>                 directory="logs"  prefix="mysite_com_log." suffix=".txt"
>         timestamp="true"/>
>    <context path="/servlets" docbase="servlets" debug="0" privileged="true"/>
>   
>   <Context path="" docBase="root" debug="0"/>
>   </host>
>******
>
>4.
>Configure uriworkermap.properties:
>
>*******
>#
># Default worker to be used through our mappings
>#
>default.worker=ajp13
>#
># Sites to be redirected to Tomcat
>#
>/servlets=$(default.worker)
>/servlets/*=$(default.worker)
>/*.jsp==$(default.worker)
>
>
>*******
>
>
>Thanks for any help,
>Alexander Höglind
>




--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message