Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 48026 invoked from network); 24 Nov 2006 22:42:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Nov 2006 22:42:07 -0000 Received: (qmail 61322 invoked by uid 500); 24 Nov 2006 22:42:13 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 61257 invoked by uid 500); 24 Nov 2006 22:42:13 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 61246 invoked by uid 99); 24 Nov 2006 22:42:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Nov 2006 14:42:13 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.61.61.103] (HELO usea-naimss1.unisys.com) (192.61.61.103) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Nov 2006 14:41:58 -0800 Received: from usea-nagw2.na.uis.unisys.com ([129.224.72.18]) by usea-naimss1 with InterScan Message Security Suite; Fri, 24 Nov 2006 16:41:37 -0600 Received: from usea-nagw2.na.uis.unisys.com ([129.224.72.53]) by usea-nagw2.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 24 Nov 2006 16:41:36 -0600 Received: from USTR-EXCH5.na.uis.unisys.com ([192.63.225.140]) by usea-nagw2.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 24 Nov 2006 16:41:36 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: AJP Connector & enableLookups Date: Fri, 24 Nov 2006 17:41:15 -0500 Message-ID: In-Reply-To: <456750E0.7040802@apache.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: AJP Connector & enableLookups Thread-Index: AccQBDHMKg1jqGLfQz+C3OxJYJBtWAAFRMYg From: "Fisher, Mitchell L" To: "Tomcat Developers List" X-OriginalArrivalTime: 24 Nov 2006 22:41:36.0932 (UTC) FILETIME=[B3280640:01C71019] X-Virus-Checked: Checked by ClamAV on apache.org I have a question about the behavior of the Tomcat AJP Connector. When my mod_jk equivalent sends the remote host name in AJP, the servlet's call to getRemoteHost() returns the IP address if enableLookups is set false in the connector, and returns the remote host supplied by the front-end server if enableLookups is true. I am using snoop.jsp to test this. Does this make sense? If the front-end server is sending the hostname, shouldn't the connector use the hostname whether enableLookups is set or not? By "mod_jk equivalent" I mean that we have our own web server extension that performs the AJP 1.3 protocol to Tomcat 5.5.20 running on Windows. My tracing shows that the hostname is being sent in each case. Mitchell Fisher | Unisys Corp. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org