LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > mod_zeus

Reply
 
Thread Tools Display Modes
  #11  
Old 05-17-2011, 03:58 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
The request header format needs to be "x-cluster-client-ip: xx.xx.xx.xx". The reason of private IP shown in log is likely because Zeus load balancer sends the private IP in the x-cluster-client-ip request header.

BTW, what exactly is the below format?

Quote:
Originally Posted by shahidbashir View Post
i am seeing the required rest header in the following format

key=HTTP_X_CLUSTER_CLIENT_IP || value =xx.xx.xx.xx


Thanks.
Reply With Quote
  #12  
Old 05-18-2011, 12:07 AM
shahidbashir shahidbashir is offline
New Member
 
Join Date: May 2011
Posts: 8
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.
Reply With Quote
  #13  
Old 05-18-2011, 10:49 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
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 View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:46 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.