You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Connie Chan <cc...@drfirst.com> on 2001/05/10 22:39:14 UTC
Virtual hosts on IIS 5 & Tomcat
Hi,
Has anyone tried to set up virtual hosts in IIS with Tomcat
successfully? I need to create a development and testing evironments
within the same IIS box. I try to create another web site with
different port number in IIS. Eventually, I will add additional DNS or
ip address for the virtual host. I add the virtual directory called
jakarta and filter to the second web site as I did to the default web
site.
Then, I modified the tomcat. I add a new server.xml for the second site
and named the file called server-second.xml. I have a start up batch
file to start up the tomcat with -f
%TOMCAT_HOME%\conf\server-second.xml. In server-second.xml, I change
the context to point to the testing web application and ports for AJP12
(port: 8008) and Http handler. I add another worker to the worker list
in the worker.properties. Here is the following:
worker.list=ajp12, ajp12second, ajp13
worker.ajp12second.port=8008
worker.ajp12second.host=localhost
worker.ajp12second.type=ajp12
worker.ajp12second.lbfactor=1
However, I'm not sure how to modify uriworkermap.properties since I want
to map the pattern so that for all the jsp files and servlets for the
second site would be served by ajp12second. That means, I need to add
/*.jsp=ajp12second and /servlet/*=ajp12second somewhere in the
properties file. It may have conflict with the setting for the default
web site. If I have a separate uriworkermap.properties, it means that I
need to have separate registery for the isapi_redirect.dll running on
the second site. I pretty much get stuck.
Can anyone help?
Thanks,
Connie