Hi!
This Post by Robert was helpful I tried it and it works. But i have a few
more Qs.

Q 1. The Documentation mentions that to add contexts to the IIS we  need to
add contexts in uriworkermap.properties (a file totaly ignored in Robert's
solution). Any idea whether that needs to be done at all & if so in what
situation?

Q 2. In the <Host> ... </Host> entry of server.xml, we create a Context with
path="xyz" & docBase="webapps/contextname". What should one do if teh
context is to be mapped to a directory outside "c:\jakarta-tomcat\webapps\"
say maybe on "d:\webapps\"

Q3. Are there any benefits to running multiple instances of tomcat for each
virtual host. If yes how does one run multiple instances?

thanks
sachin

----- Original Message -----
From: Robert J. Lebowitz <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001 12:23 AM
Subject: Re: Tomcat, IIS and virtual hosts


> I finally solved the problem of virtual hosts on IIS myself.... it took a
> bit of time, and I had to re-read the Tomcat documentation quite a bit.
It
> might be useful to have an example as there is for the Apache server in
> there in the future.
>
> I had to modify to files to allow me to connect properly to my virtual
> hosts:
>
> 1.  server.xml - use the <Host name="myhost.org">
> </Host> section to define an appropriate context for the virtual host.
> Supposedly you can specify either the fully qualified hostname, or it's IP
> address in the name attribute.
>
> 2.  workers.properties.  This is the part that had me stumped for quite a
> while.  I had to redefine the host associated with the ajp12 worker.  I
> suppose that if I wanted to retain the localhost setting, I could define
> another worker in the worker.list, make sure it is of type ajp12, and
assign
> it's .host attribute with the name of my virtual host, and it's port as
> 8007.
>
> here's an example.
>
> In the uriworkers.properties file it's important to assign the correct
> worker to the URL path name you're using for that virtual host... since I
> used ajp12, I didn't have to do much there...
>
> #
> # Defining a worker named ajp12 and of type ajp12
> # Note that the name and the type do not have to match.
> #
> worker.list=ajp12, ajp13
> worker.ajp12.port=8007
> #worker.ajp12.host=localhost
> worker.ajp12.host=myhost.org
> worker.ajp12.type=ajp12
>
>

Reply via email to