tracker issue : CF-3303509

select a category, or use search below
(searches all categories and all time range)
Title:

CGI.remote_host feature is not working properly

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/TooManySideEffects

Reporter/Name(from Bugbase): / ext-user (Swaraj Kumar Mitra)

Created: 08/06/2012

Components: Web Container (Tomcat)

Versions: 10.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 10,282462 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Solaris All,Windows 7 64-bit

Vote Count: 0

Problem: Using CGI.remote_host can't get the remote host machine name or domain name.

Method:

1.	Installed Apache 2.2 and add the line “HostnameLookups  on” in httpd.conf file
2. Install ColdFusion 10 and configure a connector with apache web server.
3. Create a .cfm page with the code <cfdump var="#CGI#"> and save it inside apache web server document root folder (htdocs).
3. Call this page from remote machine.


Result: It is giving the IP address in the remote host value.

Expected: It should give the name of the machine on which the page is being browsed.

Workaround: NA

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3303509

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

We need to document that To get the Host name in CGI.REMOTE_HOST we need to specifically set an attribute called “enableLookups” to true on Connector where protocol=”AJP/1.3” in server.xml present in ColdFusion10\cfusion\runtime\conf.
Comment by Asha K.
18613 | October 30, 2012 02:21:18 AM GMT
Closing the bug as Never Fix. Having “enableLookups” turned on by default may have performance implications.
Comment by Immanuel N.
18614 | February 19, 2014 05:15:22 AM GMT