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
  #1  
Old 05-16-2011, 05:57 AM
shahidbashir shahidbashir is offline
New Member
 
Join Date: May 2011
Posts: 8
Default mod_zeus

Hello ,

I just got the litespeed (licensed version ) and I want to have mod_zues in it .

http://www.zeus.com/community/extens...ache-webserver

Please give me your advice on that .



Thanks
Reply With Quote
  #2  
Old 05-16-2011, 06:24 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,294
http://www.litespeedtech.com/docs/we...pInProxyHeader
just set
Server->General->Use Client IP in Header:Yes
Reply With Quote
  #3  
Old 05-16-2011, 06:32 AM
shahidbashir shahidbashir is offline
New Member
 
Join Date: May 2011
Posts: 8
I have changed as you asked and restarted the litespeed service but i am still watching the same IP of loadbalancer in my access_logs
Reply With Quote
  #4  
Old 05-16-2011, 06:56 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,294
which load balancer you're running?
Reply With Quote
  #5  
Old 05-16-2011, 10:14 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
You can define log format (admin console->configuration->server->log) as follows: %

Quote:
%{X-Cluster-Client-Ip}i %h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"
the first field (defined as %{X-Cluster-Client-Ip}i) in your access log should show client IP.
Reply With Quote
  #6  
Old 05-16-2011, 10:27 AM
shahidbashir shahidbashir is offline
New Member
 
Join Date: May 2011
Posts: 8
I have added

%{X-Cluster-Client-Ip}i %h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"

in the log parameter but still no luck . still receiving the IP of loadbalancer .


Thanks.
Reply With Quote
  #7  
Old 05-16-2011, 10:32 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
make sure your load balancer sends out request header like "X-Cluster-Client-IP: xxx.xxx.xxx.xxx" to lsws, where xxx.xxx.xxx.xxx is the client source IP address.
Reply With Quote
  #8  
Old 05-17-2011, 02:13 AM
shahidbashir shahidbashir is offline
New Member
 
Join Date: May 2011
Posts: 8
We are using Zeus loadbalancers . http://www.zeus.com/products/load-balancers

I am working on the headers to see if it is happening as required .


Thanks
Reply With Quote
  #9  
Old 05-17-2011, 08:50 AM
shahidbashir shahidbashir is offline
New Member
 
Join Date: May 2011
Posts: 8
Hello ,

I can see in logs that it is showing the ip of my machine on private network 192.168.3.45 . but not showing the global ip of my request . i have seen that
key=HTTP_X_CLUSTER_CLIENT_IP contains the correct IP that i want but when i use the log format that you sent
%{X_CLUSTER_CLIENT_IP}i %h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"


it give me my private network ip . please advise on that

Thanks,
Shahid.
Reply With Quote
  #10  
Old 05-17-2011, 01:39 PM
shahidbashir shahidbashir is offline
New Member
 
Join Date: May 2011
Posts: 8
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
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 08:32 AM.



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