Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 86925 invoked from network); 4 Jul 2005 23:07:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jul 2005 23:07:09 -0000 Received: (qmail 82227 invoked by uid 500); 4 Jul 2005 23:07:04 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 82188 invoked by uid 500); 4 Jul 2005 23:07:04 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 82175 invoked by uid 99); 4 Jul 2005 23:07:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2005 16:07:04 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jgenender@savoirtech.com designates 209.181.65.237 as permitted sender) Received: from [209.181.65.237] (HELO sun.savoirtech.com) (209.181.65.237) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 04 Jul 2005 16:07:04 -0700 Received: from [206.197.197.17] ([206.197.197.17]) by sun.savoirtech.com (8.12.11/8.12.11) with ESMTP id j64N6v8m012355 for ; Mon, 4 Jul 2005 17:06:58 -0600 Message-ID: <42C9C111.1040506@savoirtech.com> Date: Mon, 04 Jul 2005 17:06:57 -0600 From: Jeff Genender User-Agent: Mozilla Thunderbird 0.9 (Macintosh/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: Re: [jira] Created: (GERONIMO-702) Can't set listen host/IP for Tomcat Connectors References: <492679063.1120515370411.JavaMail.jira@ajax.apache.org> In-Reply-To: <492679063.1120515370411.JavaMail.jira@ajax.apache.org> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on sun.savoirtech.com X-Virus-Scanned: clamd / ClamAV version 0.74, clamav-milter version 0.74a on sun.savoirtech.com X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-112.3 required=5.6 tests=ALL_TRUSTED,AWL,BAYES_00, USER_IN_WHITELIST autolearn=ham version=3.0.3 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Aaron, I am confident we handle this. The ConnectorGBean is a simply a GBean proxy for the Tomcat Connector object. You can declaritively change the ip address to listen on with an initParam called "address" in the GBean configuration. See here for an example of how this would be done in our j2ee-server-tomcat-plan.xml using 192.168.0.1: address=192.168.0.1 port=${PlanTomcatHTTPPort} maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=${PlanTomcatHTTPSPort} acceptCount=100 connectionTimeout=20000 disableUploadTimeout=true TomcatWebContainer Since we are proxying the call to the Connector object, we support and pass on all Tomcat configurations to the Tomcat engine as listed here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html. So, IMHO, I believe we support this for Tomcat. Does this handle the concern? Thanks, Jeff Aaron Mulder (JIRA) wrote: > Can't set listen host/IP for Tomcat Connectors > ---------------------------------------------- > > Key: GERONIMO-702 > URL: http://issues.apache.org/jira/browse/GERONIMO-702 > Project: Geronimo > Type: Bug > Components: Tomcat > Versions: 1.0-M3 > Reporter: Aaron Mulder > > > Currently the Tomcat network connector GBean lets you specify the port to listen on, but not the host/IP. Both should be allowed. The class in question is: > > geronimo/modules/tomcat/org/apache/geronimo/tomcat/ConnectorGBean > > When this is done, the getAddress method on that class should be changed to return the correct listen address instead of being hardcoded to return "0.0.0.0" and the relevant port. >