문제

I am using AWS ELB on two ColdFusion servers. I am able to get the client's local ip using #cgi.http_x_forwarded_for# but I can't turn on debugging b/c the only IP it recognizes is the IP of the ELB. Enabling debugging in this manner exposes the robust exception info to the public, which is obviously not a good idea.

Is it possible to get CF admin to recognize the client IP address through some manner of IIS header re-writing or something similar? Or modify the ColdFusion debugger to use the http_x_forwarded_for?

도움이 되었습니까?

해결책

Never mind, I figured it out. I added the following to c:\coldfusion10\cfusion\runtime\conf\server.xml:

<Valve className="org.apache.catalina.valves.RemoteIpValve" 
    protocolHeader="X-Forwarded-Proto" 
    remoteIpHeader="X-Forwarded-For" 
    protocolHeaderHttpsValue="https" />
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top