
05-18-2011, 10:49 AM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,339
|
|
Are you talking about $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'] variable?
If so, "%{x-cluster-client-ip}i" should be used in lsws server logformat definition (as pointed out before) to get the correct IP recorded in log file.
Quote:
Originally Posted by shahidbashir
infact i can see that HTTP_X_CLUSTER_CLIENT_IP contains the correct IP that I want in logs . and same is configured in log_format but it is not showing up in the logs as expected .
the ip that is showing up in logs is in HTTP_X_FORWARDED_FOR . i exchanged it in log_format as well , just to see . but same happens .
Thanks,
Shahid.
|
|