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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Client IP in Header - for different websites?

Reply
 
Thread Tools Display Modes
  #1  
Old 12-13-2012, 07:30 AM
IanD IanD is offline
Member
 
Join Date: Sep 2010
Posts: 41
Default Client IP in Header - for different websites?

Hi,

I need to use the feature 'Client IP in Header' but only for certain virtual hosts.

Is this possible or is it a global only thing?

If it's not possible, is there a way I can add a custom header so the real IP of the user is put in X-Forwarded-For if it doesn't exist?

The problem is I have a mixture of domains using DDoS protection and some not, all pointing to the same LiteSpeed webserver.

So sometimes the X-Forwarded-For is set and needs to be used and sometimes it is the normal REMOTE_ADDR

Thanks,

Ian
Reply With Quote
  #2  
Old 12-13-2012, 11:54 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
It is a global option.

When X-Forwarded-For header is not available, LiteSpeed still use REMOTE_ADDR.
For security reason, LSWS only use X-Forwarded-For IP if REMOTE_ADDR is a TRUSTED IP listed in ACL, so, it should be safe to enable X-Forwarded-For globally.
Reply With Quote
  #3  
Old 12-13-2012, 04:40 PM
IanD IanD is offline
Member
 
Join Date: Sep 2010
Posts: 41
That works perfectly - thank you!
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:55 PM.



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