You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jason Hendriks <he...@canada.com> on 2002/03/23 15:52:58 UTC

Re: How to define multiple sites (VIRTUAL HOSTS)

Check out tomcat/conf/apps-examples.xml.

If you have a virtual host, then add "apps-foo.xml" into the tomcat/conf
directory.

Very basically you specify the settings of the virutal host into
apps-foo.xml:
<Server>
  <Host name="foo.com">
    <Alias name="www.foo.com" />
    <Context path="/" docBase="/var/www/foo"></Context>
  </Host>
</Server>

That's it.  I don't remember there being anything special to be done in IIS
other than to direct the requests to this VirtualHost to Tomcat, which is
the same as any other redirection.  Read more in documentation
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html under "Adding
and Customizing Contexts".

Jason


----- Original Message -----
From: "Alexander Höglind" <al...@hoglind.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, March 22, 2002 10:02 PM
Subject: Re: How to define multiple sites


Hi,
Where can I find the information about Virtual hosts that comply to
tomcat-w2k_srv-IIS-config? I could only find
http://www.jguru.com/forums/view.jsp?EID=395617 and I didn't get much clever
from that.
I've been looking in the Application Devloper Guide and still don't get it.
I've been browsing around for a couple of days now and there is different
solutions to how to do. I don't want to experiment to much or else I'll have
no idea how I really configured the server.
In the deployment section of the Application Devloper Guide there is 4
different ways.Then in the following chapters they mess everyhing up for me.
In http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html
there is anohter way in the Advanced Worker Configuration section of that
page.

Does anyone know about a simple How-To , like:
1. do this, 2. do that....?

Thanks,
Alexander Höglind

----- Original Message -----
From: "Bernhard Wraase" <bw...@netkosmos.de>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, March 22, 2002 4:14 PM
Subject: Re: How to define multiple sites


> >there would be no problem to map tomcat to another folder (like
inetpub\wwwroot). But since I have multiple sites defined with different
>application requirements I would like to be able to map tomcat to multiple
folders like inetpub\mysite1, intepub\m
> ysite2.
> > What I can read in the documentation this is posible. I need to define
differnt workers, but I've tried and failured.
>
> Probably you should check the part with "virtual hosts".
> With them you can configure that the requests to different host names are
> mapped to different webapps.
>
> --
> HTH Bernhard Wraase
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>