Forum Discussion
hooleylist
Jun 10, 2011Cirrostratus
Hi Chris,
Maybe here:
http://middlewaremagic.com/weblogic/?p=6466
To get the value of X-forwarded-for (i.e. The IP address of the client.) you just have to do the two following things from the console
Console Path:
First
AdminConsole —> Servers —-> [Your_Server_Name] —> Configuration [Tab] —> General [Sub-Tab] —>
- Click on “Advanced” Link
- Check the CheckBox in this Page “WebLogic Plug-In Enabled”
“WL-Proxy-Client-IP”
Second
Servers –> [YOUR_SERVER_NAME] —> Logging [Tab] —> HTTP [sub-tab]
- Click on Advanced Link at the bottom of the page
- In the “Extended Logging Format Fields:” Just add the c-ip at the beginning or at the end of the values and save it.
Suppose if you have given c-ip at the beginning then the output in the access.log would be something like this
Example:
10.10.10.10 – - [26/Apr/2011:16:36:14 +0530] “GET /SimpleWebApp/ HTTP/1.1″ 200 119
10.10.10.10 – - [26/Apr/2011:16:36:14 +0530] “GET /favicon.ico HTTP/1.1″ 404 1214
Where “10.10.10.10″ is the client IP.
Regards,
Ravish Mody
Aaron