tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lear <>
Subject Re: Problems ip based virtual hosting apache2+tomcat5.0.19
Date Wed, 14 Dec 2005 16:08:51 GMT
* Jens Werdin wrote (14/12/05 15:28):
> Hi all,
> I have an apache 2.0.49 with some ip based virual hosts.
> What i try to do is giving each virtual host its own webapplication.
> Apache and tomcat are working. its working if I try with localhost.
> when i try the ip address of a virtual hosts i always get the answer.
> "no host matches server name 192....."
> What i tried so far is configuring a worker for each host, a connector for 
> each worker and a host with name="192....." 
> in detail:
> worker.worker4.port=8124
> <connector port="8124" protocol="AJP/1.3" />
> <host name="">

Try something like this rather abbreviated example:

<Server port="8005">

<Service name="vhost1">
<Connector port="8124" address="" protocol="AJP/1.3" />
<Engine name="Catalina" defaultHost="XYZ">
<Host name="XYZ" appBase="webapps"/>

<Service name="vhost2">
<Connector port="8124" address="" protocol="AJP/1.3" />
<Engine name="Catalina" defaultHost="ABC">
<Host name="ABC" appBase="webapps"/>


Warning: not tested. I've only ever used one service in each tomcat
instance. I run a different tomcat instance for each IP address.

Tomcat needs the defaultHost to be set, or it tends to refuse to talk
when no name matches. Getting different defaults for different IP
addresses will need separate services. You could run them on the same IP
address but different ports instead of different addresses - it would
come to the same thing.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message