Hey, all. Thanks in advance for the info on this. I realize it's not a straight-up CF question, but my search for answers has come up empty thus far. Hoping someone here will have the last piece of the puzzle.
We're running our CF servers (using JRun and Apache) behind a load balancer, and as such the IP address that comes through the apps in CGI.REMOTE_ADDR is always the IP of the load balancer. Now, I'm familiar that the standard procedure for this seems to be having the proxy (or, in this case load balancer) add a header - X-FORWARDED-FOR. We've accomplished that. The question then is how to reliably use this value in both the scenario when it's defined (coming from the LB) and when it's not (when, say, I'm hitting a box directly via IP). In other threads on CF-Talk I've seen this come up and one solution was the same I came up with (basically an if IsDefined etc). That's all well and good, but my question is this: Is there a configuration change I can either make to Apache or to JRun that will automatically treat the X-FORWARDED-FOR header as REMOTE_ADDR such that no change to my application'(s) code needs to be made? This would be ideal as we have a number of applications/sites running that were programmed before moving to a load balanced setup, and it would be lovely to let the code be. Thanks again. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352028 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

