You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by sereeds <se...@telus.net> on 2003/04/21 21:01:00 UTC

Virtual Hosts and Context

I would like to setup several virtual hosts on a single Tomcat server.  I have added the following to the server.xml file under the <Engine> element.
I guess my question is, what's the most simplistic way to setup virtual hosts with their appropriate contexts?
Am I on the right track?  TIA :-)

      <Host name="ww2.domain.ca" debug="0" appBase="webapps/ww2" 
       unpackWARs="true" autoDeploy="true">
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="ww2_log." suffix=".txt"
	        timestamp="true"/>
          <Context path="" docBase="ww2" debug="0"/>
      </Host>

      <Host name="mail.domain.ca" debug="0" appBase="webapps/mail" 
       unpackWARs="true" autoDeploy="true">
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="mail_log." suffix=".txt"
	        timestamp="true"/>
          <Context path="" docBase="mail" debug="0"/>
      </Host>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Virtual Hosts and Context

Posted by John Turner <to...@johnturner.com>.
Yes.

John

On Mon, 21 Apr 2003 13:01:00 -0600, <se...@telus.net> wrote:

> I would like to setup several virtual hosts on a single Tomcat server.  I 
> have added the following to the server.xml file under the <Engine> 
> element.
> I guess my question is, what's the most simplistic way to setup virtual 
> hosts with their appropriate contexts?
> Am I on the right track?  TIA :-)
>
> <Host name="ww2.domain.ca" debug="0" appBase="webapps/ww2" 
> unpackWARs="true" autoDeploy="true">
> <Logger className="org.apache.catalina.logger.FileLogger"
> directory="logs"  prefix="ww2_log." suffix=".txt"
> 	        timestamp="true"/>
> <Context path="" docBase="ww2" debug="0"/>
> </Host>
>
> <Host name="mail.domain.ca" debug="0" appBase="webapps/mail" 
> unpackWARs="true" autoDeploy="true">
> <Logger className="org.apache.catalina.logger.FileLogger"
> directory="logs"  prefix="mail_log." suffix=".txt"
> 	        timestamp="true"/>
> <Context path="" docBase="mail" debug="0"/>
> </Host>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org