You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Fisher, Mitchell L" <Mi...@unisys.com> on 2006/11/24 23:41:15 UTC

AJP Connector & enableLookups

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