tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sachin Phatak" <>
Subject Re: Tomcat, IIS and virtual hosts
Date Wed, 09 May 2001 10:47:30 GMT
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 (a file totaly ignored in Robert's
solution). Any idea whether that needs to be done at all & if so in what

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?


----- Original Message -----
From: Robert J. Lebowitz <>
To: <>
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.
> 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="">
> </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.  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
> it's .host attribute with the name of my virtual host, and it's port as
> 8007.
> here's an example.
> In the 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.type=ajp12

View raw message