tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Werdin <jens.wer...@blids.de>
Subject Re: Problems ip based virtual hosting apache2+tomcat5.0.19
Date Thu, 15 Dec 2005 07:38:50 GMT
Hi Chris,
thank you for your help. I made a test and it seems to work fine.

Jens


Am Mittwoch 14 Dezember 2005 17:08 schrieb Chris Lear:
> * 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.host=192.168.2.124
> > worker.worker4.port=8124
> >
> > <connector port="8124" protocol="AJP/1.3" />
> >
> > <host name="192.168.2.124">
>
> Try something like this rather abbreviated example:
>
> <Server port="8005">
>
> <Service name="vhost1">
> <Connector port="8124" address="add.re.ss.one" protocol="AJP/1.3" />
> <Engine name="Catalina" defaultHost="XYZ">
> <Host name="XYZ" appBase="webapps"/>
> </Engine>
> </Service>
>
> <Service name="vhost2">
> <Connector port="8124" address="add.re.ss.two" protocol="AJP/1.3" />
> <Engine name="Catalina" defaultHost="ABC">
> <Host name="ABC" appBase="webapps"/>
> </Engine>
> </Service>
>
> </Server>
>
> 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.
>
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org

-- 
Jens Werdin
-----------
// BLIDS - Blitz InformationsDienst von Siemens
// jens.werdin@blids.de
// 0049 721 595 2737
-----------

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


Mime
View raw message