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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > functionality like in mod_rpaf?

Reply
 
Thread Tools Display Modes
  #1  
Old 03-31-2007, 04:26 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
Default functionality like in mod_rpaf?

Hey folks,

I'm thinking of adding a proxying load-balancer in front of my servers.
Unfortunately the backend-lsws servers would only see and log the remote_ip of the proxy-server.
For apache there is mod_rpaf ( http://stderr.net/apache/rpaf/ ) which adds back the latest x_forwarded_for header as remote-ip which would allow sane logging and other actions done on the remote-ip.

Is there any feature like that in lsws?
Would you think it worthwhile to add?


thanks,

thomas
Reply With Quote
  #2  
Old 03-31-2007, 06:41 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
This is a new feature available in 3.0 Enterprise, x-forwarded-for header will be used as remote ip in access log if "Use Client IP in Header" is set to yes.
Reply With Quote
  #3  
Old 03-31-2007, 06:59 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
sounds good that this feature is available but darn that I'd need a second enterprise license for that .
thanks for the info though.
Reply With Quote
  #4  
Old 05-19-2007, 03:21 PM
jackc jackc is offline
Member
 
Join Date: Apr 2007
Posts: 33
so this feature only log the the client's real ip, what about the other functions like php scripts, do they see the real ip as well? mod_rpaf makes everything sees the real ip.
Reply With Quote
  #5  
Old 05-19-2007, 04:07 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
The real IP will be used everywhere once this feature is enabled.
Reply With Quote
  #6  
Old 05-19-2007, 05:37 PM
jackc jackc is offline
Member
 
Join Date: Apr 2007
Posts: 33
If the client is behind multiple transparent proxies with x-forwarded-for header, does lsws still able to see the real IP? Is this feature only available in Enterprise version?
Reply With Quote
  #7  
Old 05-19-2007, 05:44 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Answer to both of your question is yes.
The real IP should be the first IP in the x-forwarded-for header, as long as all proxies keep the real IP that way in the header, LSWS will use the real IP.
Reply With Quote
  #8  
Old 05-20-2007, 12:02 AM
jackc jackc is offline
Member
 
Join Date: Apr 2007
Posts: 33
Thanks for your reply!!!
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 04:15 PM.



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