Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9D18983D for ; Tue, 27 Sep 2011 22:12:59 +0000 (UTC) Received: (qmail 64763 invoked by uid 500); 27 Sep 2011 22:12:56 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 64618 invoked by uid 500); 27 Sep 2011 22:12:56 -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 64608 invoked by uid 99); 27 Sep 2011 22:12:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 22:12:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [216.82.243.163] (HELO mail46.messagelabs.com) (216.82.243.163) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 22:12:48 +0000 X-Env-Sender: Chuck.Caldarale@unisys.com X-Msg-Ref: server-4.tower-46.messagelabs.com!1317161545!3306644!5 X-Originating-IP: [192.61.61.105] X-StarScan-Version: 6.3.6; banners=-,-,- X-VirusChecked: Checked Received: (qmail 5046 invoked from network); 27 Sep 2011 22:12:26 -0000 Received: from naedge.unisys.com (HELO USEA-NAEDGE2.unisys.com) (192.61.61.105) by server-4.tower-46.messagelabs.com with RC4-SHA encrypted SMTP; 27 Sep 2011 22:12:26 -0000 Received: from usea-nahubcas1.na.uis.unisys.com (129.224.76.114) by USEA-NAEDGE2.unisys.com (192.61.61.105) with Microsoft SMTP Server (TLS) id 8.3.83.0; Tue, 27 Sep 2011 17:11:29 -0500 Received: from USEA-EXCH8.na.uis.unisys.com ([129.224.76.41]) by usea-nahubcas1.na.uis.unisys.com ([129.224.76.114]) with mapi; Tue, 27 Sep 2011 17:11:27 -0500 From: "Caldarale, Charles R" To: Tomcat Users List Date: Tue, 27 Sep 2011 17:11:28 -0500 Subject: RE: bind webapps to different IP addresses on a single instance of tomcat Thread-Topic: bind webapps to different IP addresses on a single instance of tomcat Thread-Index: Acx9YDvjm85DkgskTuO6yxe2HC9IpgAAC2nA Message-ID: <99C8B2929B39C24493377AC7A121E21FB00342D6CF@USEA-EXCH8.na.uis.unisys.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 > From: Robert Lafleur [mailto:rlafleur@vbridges.com]=20 > Subject: bind webapps to different IP addresses on a single instance of t= omcat > Is there a way to configure a single instance of tomcat=20 > to bind webapps to different ip addresses, or do I have > to configure two tomcat instance to host each webapp? There are a few options in addition to running two instances of Tomcat. 1) Use virtual hosts to separate the requests; one per IP address. http://tomcat.apache.org/tomcat-7.0-doc/virtual-hosting-howto.html 2) Use a filter in each webapp to reject requests sent to the wrong IP addr= ess. This one is fairly easier to configure: http://www.tuckey.org/urlrewrite/ 3) Write a single at the level to reject inappropriate req= uests. I don't think there's a standard Valve to do this, but it should be= fairly easy to extend an existing one. http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html 4) Configure two elements, each with one , , a= nd . http://tomcat.apache.org/tomcat-7.0-doc/config/service.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MA= TERIAL and is thus for use only by the intended recipient. If you received = this in error, please contact the sender and delete the e-mail and its atta= chments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org