Skip to main content
Known Participant
October 1, 2009
Answered

Custom Environment/CGI Variables

  • October 1, 2009
  • 1 reply
  • 782 views

We are moving to a load balanced environment, where we have multiple physical nodes sitting behind a load balancer. We are using a rule on the load balancer to pass the client ip to the nodes and an ISAPI filter to grab it for the IIS logs, but I am wondering if there is a way to get to this custom variable from within ColdFusion.

This topic has been closed for replies.
Correct answer ilssac

Ok then what does <cfdump var="#GetHttpRequestData()#"> get you.

1 reply

ilssac
Inspiring
October 1, 2009

Does it show up in the CGI scope?

I.E. <cfdump var="#cgi#">

Known Participant
October 1, 2009

It does not. I think that it gets added to the header variables, rather than replacing the ip variable. cgi.remote_addr is still the ip of the load balancer.

ilssac
ilssacCorrect answer
Inspiring
October 1, 2009

Ok then what does <cfdump var="#GetHttpRequestData()#"> get you.