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

Custom Environment/CGI Variables

New Here ,
Oct 01, 2009 Oct 01, 2009

Copy link to clipboard

Copied

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

Views

641

Translate

Translate

Report

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.

Votes

Translate

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

Copy link to clipboard

Copied

Does it show up in the CGI scope?

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

That got me exactly what I need.  Thanks!

Votes

Translate

Translate

Report

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
Documentation