Normally, this is as easy as:

if (cgi.server_name contains "dev") {
  thisServer = "dev";
  thisApplicationName = "myApp_dev";
} else if (cgi.server_name contains "stage") {
  thisServer = "stage";
  thisApplicationName = "myApp_stage";
} else {
  thisServer = "prod";
  thisApplicationName = "myApp";
}

However, now I've got two load-balanced servers, so they both share
the same cgi.server_name. What's the best way to identify each server
individually? I can think of a couple ways that may not necessarily be
the best: I could use <cfregistry> or <cfexecute> with "net name" to
get the IP/Machine Name, then set a server variable, which is what
I'll do if nobody has a better solution.

Thanks,
Jamie
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to