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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Jens Werdin
-----------
// BLIDS - Blitz InformationsDienst von Siemens
// [EMAIL PROTECTED]
// 0049 721 595 2737
-----------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to