> From: mast [mailto:[EMAIL PROTECTED] 
> Subject: Re: problem with getcontext and context.xml
> 
> Well i have DNS entrie for both but i have only 1 IP so it s the same 
> entries , both vhost have the same IP (that s why their are vhost :) )

Yes, that should work - I've just verified it with my 5.5.20
installation.  Here's my server.xml, with most of the comments stripped
out:

<Server port="8005" shutdown="SHUTDOWN">
  <Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
/>
  <Listener
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"
/>
  <GlobalNamingResources>
    <Environment name="simpleValue" type="java.lang.Integer"
value="30"/>
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved"
           factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>
  <Service name="Catalina">
    <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
               enableLookups="false" redirectPort="8443"
acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />
    <Connector port="8009" 
               enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" />
    <Engine name="Catalina" defaultHost="myhost1.com">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>
      <Host name="myhost1.com" appBase="webapps1"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
        <Valve
className="org.apache.catalina.valves.FastCommonAccessLogValve"
                 directory="logs" prefix="myhost1.com_access_log."
suffix=".log"
                 pattern="common" resolveHosts="false"/>
      </Host>
      <Host name="myhost2.com" appBase="webapps2"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
        <Valve
className="org.apache.catalina.valves.FastCommonAccessLogValve"
                 directory="logs" prefix="myhost2.com_access_log."
suffix=".log"
                 pattern="common" resolveHosts="false"/>
      </Host>
    </Engine>
  </Service>
</Server>

All servlet and JSP examples work properly, and differentiate properly
between myhost1 and myhost2.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to