Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Custom Environment/CGI Variables

New Here ,
Oct 01, 2009 Oct 01, 2009

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.

TOPICS
Advanced techniques
726
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Oct 01, 2009 Oct 01, 2009

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

Translate
Valorous Hero ,
Oct 01, 2009 Oct 01, 2009

Does it show up in the CGI scope?

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 01, 2009 Oct 01, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 01, 2009 Oct 01, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 01, 2009 Oct 01, 2009
LATEST

That got me exactly what I need.  Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources