F5 Apache Web takes the user’s real IP
The application environment is as follows: F5 load balancing 16 Apache, then switch to 4 Weblogic in the background, and cluster between Weblogic. Now there is a problem that the customer's real IP address cannot be obtained on Weblogic. See that there are many related posts on the Internet that introduce the integrated use of Apache and Weblogic. You can use the x-forward-for value in the HTTP header to get the user's IP address. However, in my environment, the x-forward-for value points to the F5 address. It is preliminarily estimated that the problem should be in the F5 configuration. After searching the data of F5, it is found that one setting in the HTTP profile is insert xforwarded for. Enabling this function, it is found that Weblogic can get the user's IP address. Insert xforwarded for specifies an xforwarded for header that the LTM system can insert in the HTTP request for use with the connection pool. This feature adds the IP address of the client as the value of the xfforwarded for header.
Original address: http://blog.csdn.net/lastsweetop/archive/2009/06/09/4255486.aspx