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?
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.
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.
You can either define QS_SrvMinDataRate OR QS_SrvRequestRate but not both and each directive may be configured only once.
It's working fine after turned off QS_SrvRequestRate.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.