QS_SrvMinDataRate: directive can't be used ?

  • Sergio

    Sergio - 2012-03-02

    Hi all,
    new to the group. I have done a search and didn't find any info about this. I am using CPanel with REHL 6 64bits.

    In my Mod_QOS config I have the following:

        # minimum request/response speed (deny slow clients blocking the server, ie. slowloris keeping connections open without requesting anything):
        QS_SrvMinDataRate     150 1200

    But apache shows the following error:

    Sorry, your changes have introduced a syntax error. Please correct the issue.

    An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf Exit signal was: 0 Exit value was: 1 Output was: -- Syntax error on line 22 of /usr/local/apache/conf/includes/pre_virtualhost_2.conf: QS_SrvMinDataRate: directive can't be used

    Any idea what to fix?

    Best Regards,


  • Pascal Buchbinder

    Sounds like the module hasn't been loaded.


    LoadModule qos_module /usr/local/apache/modules/mod_qos.so

    or you tried to use the directive inside a virtual host.

    Last edit: Pascal Buchbinder 2013-08-29
  • Chamnan

    Chamnan - 2013-08-28

    I have similar problem and LoadModule is loaded correctly.
    My server Ubuntu 11.10 (GNU/Linux 3.0.0-12-server x86_64)
    Server version: Apache/2.2.20 (Ubuntu)
    Server built: Mar 8 2013 15:58:04
    I have tried mod_qos-10.16 and mod_qos-10.18 with same error.

    Load and Conf:

    LoadModule qos_module /usr/lib/apache2/modules/mod_qos.so


    Syntax error on line 45 of /etc/apache2/mods-enabled/qos.conf:
    QS_SrvMinDataRate: directive can't be used together with QS_SrvMinDataRate
    Action 'configtest' failed.

    Please help me in this regard.

    Best Regards,
    Chamnan Nop

    Last edit: Chamnan 2013-08-28
  • Pascal Buchbinder

    You can either define QS_SrvMinDataRate OR QS_SrvRequestRate but not both and each directive may be configured only once.

  • Chamnan

    Chamnan - 2013-08-30

    It's working fine after turned off QS_SrvRequestRate.

    Chamnan Nop


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks