mod_security - unknown server variable while parsing

Discussion in 'Install/Configuration' started by DoM, Oct 16, 2011.

  1. DoM

    DoM New Member

    Hello,
    on all litespeed server, if i use last mod_security rules from gotroot i obtain following messages on error_log:

    2011-10-16 22:09:34.743 [ERROR] [config] rewrite: unknown server variable while parsing: REQBODY_ERROR
    2011-10-16 22:09:34.743 [ERROR] [config] rewrite: unknown server variable while parsing: REQBODY_PROCESSOR_ERROR
    2011-10-16 22:09:34.743 [ERROR] [config] rewrite: unknown server variable while parsing: MULTIPART_UNMATCHED_BOUNDARY
    2011-10-16 22:09:34.743 [ERROR] [config] rewrite: unknown server variable while parsing: MULTIPART_STRICT_ERROR
    2011-10-16 22:09:34.743 [ERROR] [config] rewrite: unknown server variable while parsing: FILES_TMPNAMES
    2011-10-16 22:09:34.743 [ERROR] [config] rewrite: unknown server variable while parsing: WEBSERVER_ERROR_LOG
    2011-10-16 22:09:35.021 [ERROR] [config] rewrite: unknown server variable while parsing: REQBODY_PROCESSOR_ERROR
    2011-10-16 22:09:35.021 [ERROR] [config] rewrite: unknown server variable while parsing: FILES
    2011-10-16 22:09:35.021 [ERROR] [config] rewrite: unknown server variable while parsing: FILES_NAMES
    2011-10-16 22:09:35.021 [ERROR] [config] rewrite: unknown server variable while parsing: Transfer-Encoding)/'
    2011-10-16 22:09:35.021 [ERROR] [config] rewrite: unknown server variable while parsing: RESPONSE_HEADERS:Content-Type
    2011-10-16 22:09:35.022 [ERROR] [config] rewrite: unknown server variable while parsing: GLOBAL:UTF8_ENCODING_USED
    2011-10-16 22:09:35.029 [ERROR] [config] rewrite: unknown server variable while parsing: RESPONSE_BODY

    All those functions are not supported or yes ?


    Waiting for your reply

    Regards
  2. mistwang

    mistwang LiteSpeed Staff

    those request variables are not supported, related rule will be ignored.

    LSWS does not produce REQBODY related error, and does not check against response header/body.
  3. DoM

    DoM New Member

    There is a way to do some rules on litespeed using request filter functions ?


    Waiting for your reply

    Regards
  4. mistwang

    mistwang LiteSpeed Staff

    "LSWS Request Filter" is the equivalent to "Apache mod_security".
    vhost from Apache conf use rules from apache conf, LSWS native vhosts only use rules from LSWS native "Request Filter" configuration, but the backend engine is the same.

Share This Page