Railo Proxy Pass Get IP address

With the newer installs of Railo it uses mod_proxy instead of mod_jk to pass the requests to tomcat. A familiar complaint is customers can no longer use:
#cgi.remote_host#

As it returns 127.0.0.1. A different option would be to use the following:
CFSET myHeaders = GetHttpRequestData()
#myHeaders.headers[‘X-Forwarded-For’]#

That should return the IP address that was desired, and only marginally more work.

Leave a Reply