CGI.REMOTE_HOST does not return host name in ColdFusion 10

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">

Get help faster and easier

New user?