From users-return-137257-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Wed Dec 14 16:09:31 2005 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 69150 invoked from network); 14 Dec 2005 16:09:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Dec 2005 16:09:30 -0000 Received: (qmail 24290 invoked by uid 500); 14 Dec 2005 16:09:13 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 24276 invoked by uid 500); 14 Dec 2005 16:09:13 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 24248 invoked by uid 99); 14 Dec 2005 16:09:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2005 08:09:13 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [80.82.139.48] (HELO mail.laculine.com) (80.82.139.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2005 08:09:12 -0800 Received: from host86-141-59-101.range86-141.btcentralplus.com ([86.141.59.101] helo=[192.168.1.10]) by marvin.thomasmurray.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.50) id 1EmZBS-0006LQ-UE for users@tomcat.apache.org; Wed, 14 Dec 2005 16:08:51 +0000 Message-ID: <43A04393.5000202@laculine.com> Date: Wed, 14 Dec 2005 16:08:51 +0000 From: Chris Lear User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050126 Thunderbird/1.0 Mnenhy/0.7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Problems ip based virtual hosting apache2+tomcat5.0.19 References: <200512141628.32081.jens.werdin@blids.de> In-Reply-To: <200512141628.32081.jens.werdin@blids.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N * 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 > > > > Try something like this rather abbreviated example: 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