Hi Team,
Normally when requests pass through load balancers client IP for
actual back end server would be load balancers IP. But sometimes
actual back end server may need actual client and load balancers (all load
balancers message passed) IPs to tracing message flows. In such cases
normally we use X-Forwarded-For[1] header. So i think we should add it to
our elastic load balancer by default. Adding following configuration to
main sequence will work. Also if header is already present we should append
ip by separating ",".
<property name="X-Forwarded-For"
expression="get-property('axis2','REMOTE_ADDR')" scope="transport"
type="STRING"/>
[1]http://en.wikipedia.org/wiki/X-Forwarded-For
Thanks,
sanjeewa.
--
*
*
*Sanjeewa Malalgoda*
Senior Software Engineer
WSO2 Inc.
Mobile : +94713068779
<http://sanjeewamalalgoda.blogspot.com/>blog
:http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev