Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 11932 invoked from network); 2 Jan 2003 13:13:58 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 2 Jan 2003 13:13:58 -0000 Received: (qmail 17273 invoked by uid 97); 2 Jan 2003 13:15:06 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 17246 invoked by uid 97); 2 Jan 2003 13:15:05 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 17221 invoked by uid 98); 2 Jan 2003 13:15:05 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3E143B0A.50601@mail.more.net> Date: Thu, 02 Jan 2003 07:13:46 -0600 From: Glenn Nielsen Organization: MOREnet User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020909 X-Accept-Language: en-us, en MIME-Version: 1.0 To: tomcat-dev@jakarta.apache.org Subject: mod_jk/Ajp enableLookups Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N While looking into another problem I found that the enableLookups attribute for the Ajp13Connector has no effect. (The docs say differently) All the Ajp13Connector does is pass through the remote host from the web server. So to have a working request.getRemoteHost() you have to turn HostnameLookups on for Apache. I don't know how this works in the other web servers supported. Either the docs need to be changed to reflect that enableLookups has no effect with the Ajp13Connector and you have to turn on hostname lookups in the web server. Or request.getRemoteHost() needs to resolve the IP to the hostname if enableLookups=true and the hostname hasn't been resolved yet. Comments? Glenn -- To unsubscribe, e-mail: For additional commands, e-mail: