You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jose Santiago Oyervides Gonzalez <jo...@elnorte.com> on 2003/06/20 00:03:30 UTC

worker.properties

Hi, 
Could anyone tell me what would be the correct configuration in the
worker.properties to allow IIS to redirect to multiple hosts.

Currently I am using this: (with no success,only for localhost)
worker.properties:
worker.ajp13.type=ajp13 
worker.work.type=ajp13 
worker.tomcat_home=D:\Tomcat4
worker.java_home=C:\j2sdk1.4.0
ps=\
worker.list=ajp13,myworker,myworker2

worker.ajp13.port=8009
worker.ajp13.host=localhost

worker.myworker.port=8009
worker.myworker.host=foo.com

worker.myworker2.port=8009
worker.myworker2.host=otherhost.com

I am using Tomcat 4.0.6 -- IIS 5.0.
According the 4.1.X documentation my configuration is valid, but I wonder if
that works in 4.0.X.  ¿?

Also in server.xml, I specified the address property for the ip of the
domains I'm configuring.(and added the hosts,obviously)

Regards.
Jose Oyervides.


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


Re: worker.properties

Posted by John Turner <to...@johnturner.com>.
Hi -

Please clarify:  do you have multiple Tomcat instances, or just one?  The 
only time you need to put more hosts in workers.properties is if you have 
MULTIPLE Tomcat instances.  If you only have one Tomcat instance, you only 
need the following in workers.properties:

# BEGIN workers.properties
# Definition for Ajp13 worker
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
# END workers.properties
 Note that it is workers.properties, not worker.properties (note the 
missing "s" in your post...a typo?).

Note also that for IIS, you need more than workers.properties...you also 
need a file called uriworkermap.properties.

Workers.properties is not for the purpose of mapping virtual hosts...its 
only purpose is to tell the connector where to find Tomcat.

If you have one Tomcat instance, and a workers.properties file like the one 
shown above, and you cannot get any host headers except "localhost" to 
work, your problem is in either or both of 1) defining/mapping virtual 
hosts on the web server side (IIS: uriworkermap.properties, Apache: 
JkMount), or 2) defining virtual hosts on the Tomcat side.

Even if you have multiple Tomcat instances, I would suggest getting things 
to work for multiple virtual hosts using one Tomcat instance, then add the 
other Tomcat instances into the mix.  Trying to get multiple Tomcat 
instances working with multiple virtual hosts all at once could easily 
become frustrating if you don't take it a step or piece at a time.

John

On Thu, 19 Jun 2003 17:03:30 -0500, Jose Santiago Oyervides Gonzalez 
<jo...@elnorte.com> wrote:

> Hi, Could anyone tell me what would be the correct configuration in the
> worker.properties to allow IIS to redirect to multiple hosts.
>
> Currently I am using this: (with no success,only for localhost)
> worker.properties:
> worker.ajp13.type=ajp13 worker.work.type=ajp13 
> worker.tomcat_home=D:\Tomcat4
> worker.java_home=C:\j2sdk1.4.0
> ps=\
> worker.list=ajp13,myworker,myworker2
>
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
>
> worker.myworker.port=8009
> worker.myworker.host=foo.com
>
> worker.myworker2.port=8009
> worker.myworker2.host=otherhost.com
>
> I am using Tomcat 4.0.6 -- IIS 5.0.
> According the 4.1.X documentation my configuration is valid, but I wonder 
> if
> that works in 4.0.X.  ¿?
>
> Also in server.xml, I specified the address property for the ip of the
> domains I'm configuring.(and added the hosts,obviously)
>
> Regards.
> Jose Oyervides.
>
>
> ---------------------------------------------------------------------
> 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