Client IP in Header - for different websites?

Discussion in 'Install/Configuration' started by IanD, Dec 13, 2012.

  1. IanD

    IanD New Member

    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
  2. mistwang

    mistwang LiteSpeed Staff

    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.
  3. IanD

    IanD New Member

    That works perfectly - thank you!

Share This Page