Issue

In ColdFusion 10, CGI.Remote_Host does not return host name when the connector is configured with an external web server. Instead of the host name, the IP address of client system is returned. 

Solution

Set the attribute named enableLookups to true on the connector where protocol="AJP/1.3" is mentioned in server.xml. Find the server.xml file at {cf_install_home}/{cf_instance}/runtime/conf.

For example:

<Connector port="8012" protocol="AJP/1.3" redirectPort="8445" tomcatAuthentication="false" enableLookups="true">

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy